Skip to content

Commit 1ae9644

Browse files
trastgitster
authored andcommitted
t3903: fix misquoted rev-parse invocation
!"git ..." hopefully always succeeds because "git ..." is not the name of any executable. However, that's not what was intended. Unquote it, and while we're at it, also replace ! with test_must_fail since it is a call to git. Signed-off-by: Thomas Rast <[email protected]> Acked-by: Jon Seymour <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d66bb0 commit 1ae9644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t3903-stash.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ test_expect_success 'ref with non-existant reflog' '
461461
echo bar6 > file2 &&
462462
git add file2 &&
463463
git stash &&
464-
! "git rev-parse --quiet --verify does-not-exist" &&
464+
test_must_fail git rev-parse --quiet --verify does-not-exist &&
465465
test_must_fail git stash drop does-not-exist &&
466466
test_must_fail git stash drop does-not-exist@{0} &&
467467
test_must_fail git stash pop does-not-exist &&

0 commit comments

Comments
 (0)