diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-07 03:00:04 +0300 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-10-07 03:00:04 +0300 |
commit | f64d4ca8d65bdca39da444d24bde94864ac01bb1 (patch) | |
tree | edc9055c3dc8e378474c951ad6a3513deaa777d0 /t/t2403-worktree-move.sh | |
parent | 3dcec76d9df911ed8321007b1d197c1a206dc164 (diff) | |
parent | 83d5e3341b69b3116675f13d2fab208a12c79e27 (diff) |
Sync with 2.37.4
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t2403-worktree-move.sh')
-rwxr-xr-x | t/t2403-worktree-move.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/t/t2403-worktree-move.sh b/t/t2403-worktree-move.sh index 1168e9f998..230a55e99a 100755 --- a/t/t2403-worktree-move.sh +++ b/t/t2403-worktree-move.sh @@ -139,7 +139,8 @@ test_expect_success 'move a repo with uninitialized submodule' ' ( cd withsub && test_commit initial && - git submodule add "$PWD"/.git sub && + git -c protocol.file.allow=always \ + submodule add "$PWD"/.git sub && git commit -m withsub && git worktree add second HEAD && git worktree move second third @@ -149,7 +150,7 @@ test_expect_success 'move a repo with uninitialized submodule' ' test_expect_success 'not move a repo with initialized submodule' ' ( cd withsub && - git -C third submodule update && + git -c protocol.file.allow=always -C third submodule update && test_must_fail git worktree move third forth ) ' @@ -228,6 +229,7 @@ test_expect_success 'remove cleans up .git/worktrees when empty' ' ' test_expect_success 'remove a repo with uninitialized submodule' ' + test_config_global protocol.file.allow always && ( cd withsub && git worktree add to-remove HEAD && @@ -236,6 +238,7 @@ test_expect_success 'remove a repo with uninitialized submodule' ' ' test_expect_success 'not remove a repo with initialized submodule' ' + test_config_global protocol.file.allow always && ( cd withsub && git worktree add to-remove HEAD && |