Skip to content

Commit a814615

Browse files
jrngitster
authored andcommitted
t2016 (checkout -p): add missing &&
Although the set_state command is not likely to fail, it is best to stay in the habit of checking for failures. Cc: Thomas Rast <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8fe5aed commit a814615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2016-checkout-patch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test_expect_success PERL 'git checkout -p HEAD with NO staged changes: apply' '
5252
'
5353

5454
test_expect_success PERL 'git checkout -p HEAD with change already staged' '
55-
set_state dir/foo index index
55+
set_state dir/foo index index &&
5656
# the third n is to get out in case it mistakenly does not apply
5757
(echo n; echo y; echo n) | git checkout -p HEAD &&
5858
verify_saved_state bar &&

0 commit comments

Comments
 (0)