Skip to content

Commit 7086101

Browse files
committed
Assure the 'file' protocol is always allowed
workaround for https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586 where git refuses to run submodule updates as they can be used as attack vector.
1 parent ffefe88 commit 7086101

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- name: Setup dependencies
3939
run:
4040
sudo apt-get install tree
41-
- run: git config --global protocol.file.allow always # workaround for https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586
4241
- name: test
4342
env:
4443
CI: true

tests/tools/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ fn scripted_fixture_repo_read_only_with_args_inner(
327327
.env("GIT_COMMITTER_DATE", "2000-01-02 00:00:00 +0000")
328328
.env("GIT_COMMITTER_EMAIL", "[email protected]")
329329
.env("GIT_COMMITTER_NAME", "committer")
330-
.env("GIT_CONFIG_COUNT", "2")
330+
.env("GIT_CONFIG_COUNT", "3")
331331
.env("GIT_CONFIG_KEY_0", "commit.gpgsign")
332332
.env("GIT_CONFIG_VALUE_0", "false")
333333
.env("GIT_CONFIG_KEY_1", "init.defaultBranch")
334334
.env("GIT_CONFIG_VALUE_1", "main")
335+
.env("GIT_CONFIG_KEY_2", "protocol.file.allow")
336+
.env("GIT_CONFIG_VALUE_2", "always")
335337
.output()?;
336338
if !output.status.success() {
337339
write_failure_marker(&failure_marker);

0 commit comments

Comments
 (0)