diff mbox series

[v2,1/3] t2400: remove unneeded `git rev-parse` from '"add" worktree with lock' test

Message ID 5459e5bb4212e47873d2862c4a96651c2f7d96b5.1625759443.git.gitgitgadget@gmail.com (mailing list archive)
State Superseded
Headers show
Series worktree: teach add to accept --reason with --lock | expand

Commit Message

Stephen Manz July 8, 2021, 3:50 p.m. UTC
From: Stephen Manz <smanz@alum.mit.edu>

It must have come from a copy-paste of another test

Signed-off-by: Stephen Manz <smanz@alum.mit.edu>
---
 t/t2400-worktree-add.sh | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/t/t2400-worktree-add.sh b/t/t2400-worktree-add.sh
index 96dfca15542..874a61dbfa7 100755
--- a/t/t2400-worktree-add.sh
+++ b/t/t2400-worktree-add.sh
@@ -67,7 +67,6 @@  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 -f .git/worktrees/here-with-lock/locked
 '