Skip to content

Commit

Permalink
Work around a Git default configuration change (#1972)
Browse files Browse the repository at this point in the history
The default behaviour of `git submodule` was changed due to a security
issue: https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586

This patch introduces a workaround suggested by Mark Esler:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586/comments/3
  • Loading branch information
mortenpi committed Oct 25, 2022
1 parent 998d26e commit b5a5c65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ end
# NOTE: the target path in the `git submodule add` command is necessary for
# Windows builds, since otherwise Git claims that the path is in a .gitignore
# file.
@test trun(`$(git()) submodule add $(path_repo) repository`)
#
# protocol.file.allow=always is necessary to work around a changed default
# setting that was changed due to a security flaw.
# See: https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586
@test trun(`$(git()) -c protocol.file.allow=always submodule add $(path_repo) repository`)
@test trun(`$(git()) add -A`)
@test trun(`$(git()) commit -m"Initial commit."`)
end
Expand Down

0 comments on commit b5a5c65

Please sign in to comment.