summaryrefslogtreecommitdiff
path: root/t/t6008-rev-list-submodule.sh
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-07-29 19:21:18 (GMT)
committerTaylor Blau <me@ttaylorr.com>2022-10-01 04:23:38 (GMT)
commit0f21b8f468566b991eea60bb7bdf2fce9265e367 (patch)
tree3130395d929ba042d48d9a0d7ae45e722a6674e9 /t/t6008-rev-list-submodule.sh
parent225d2d50ccef4baae410a96b9dc9e3978d164826 (diff)
downloadgit-0f21b8f468566b991eea60bb7bdf2fce9265e367.zip
git-0f21b8f468566b991eea60bb7bdf2fce9265e367.tar.gz
git-0f21b8f468566b991eea60bb7bdf2fce9265e367.tar.bz2
t/t6NNN: allow local submodules
To prepare for the default value of `protocol.file.allow` to change to "user", ensure tests that rely on local submodules can initialize them over the file protocol. Tests that only need to interact with submodules in a limited capacity have individual Git commands annotated with the appropriate configuration via `-c`. Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t6008-rev-list-submodule.sh')
-rwxr-xr-xt/t6008-rev-list-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6008-rev-list-submodule.sh b/t/t6008-rev-list-submodule.sh
index c4af9ca..a65e5f2 100755
--- a/t/t6008-rev-list-submodule.sh
+++ b/t/t6008-rev-list-submodule.sh
@@ -23,7 +23,7 @@ test_expect_success 'setup' '
: > super-file &&
git add super-file &&
- git submodule add "$(pwd)" sub &&
+ git -c protocol.file.allow=always submodule add "$(pwd)" sub &&
git symbolic-ref HEAD refs/heads/super &&
test_tick &&
git commit -m super-initial &&