Message ID | 5618933279dadf48ba51b79fc11beec8c163820e.1626316350.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f9365c0a24b9d2346a9b2b5a24e1fa02039f23e5 |
Headers | show |
Series | worktree: teach add to accept --reason with --lock | expand |
diff --git a/t/t2400-worktree-add.sh b/t/t2400-worktree-add.sh index 96dfca15542..93d3795cab9 100755 --- a/t/t2400-worktree-add.sh +++ b/t/t2400-worktree-add.sh @@ -67,8 +67,8 @@ test_expect_success '"add" worktree' ' ' test_expect_success '"add" worktree with lock' ' - git rev-parse HEAD >expect && git worktree add --detach --lock here-with-lock main && + test_when_finished "git worktree unlock here-with-lock || :" && test -f .git/worktrees/here-with-lock/locked '