Skip to content

Commit 9355fc9

Browse files
jonseymourgitster
authored andcommitted
stash: fix false positive in the invalid ref test.
Jeff King reported a problem with git stash apply incorrectly applying an invalid stash reference. There is an existing test that should have caught this, but the test itself was broken, resulting in a false positive. Signed-off-by: Jon Seymour <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 59d418f commit 9355fc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t3903-stash.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ test_expect_success 'invalid ref of the form stash@{n}, n >= N' '
543543
echo bar6 > file2 &&
544544
git add file2 &&
545545
git stash &&
546-
test_must_fail git drop stash@{1} &&
547-
test_must_fail git pop stash@{1} &&
548-
test_must_fail git apply stash@{1} &&
549-
test_must_fail git show stash@{1} &&
550-
test_must_fail git branch tmp stash@{1} &&
546+
test_must_fail git stash drop stash@{1} &&
547+
test_must_fail git stash pop stash@{1} &&
548+
test_must_fail git stash apply stash@{1} &&
549+
test_must_fail git stash show stash@{1} &&
550+
test_must_fail git stash branch tmp stash@{1} &&
551551
git stash drop
552552
'
553553

0 commit comments

Comments
 (0)