@matheusbsbs / matheus-bagliano / commits / a814615a6a
Fork 0

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 <trast@student.ethz.ch> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Sep 7, 2010 at 03:22 UTC a814615a6a1722839c69dcc998ed4fae9da08310
1 file changed +1 -1
t/t2016-checkout-patch.sh
+1 -1
@@ -52,7 +52,7 @@ test_expect_success PERL 'git checkout -p HEAD with NO staged changes: apply' '
52 '
53
54 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 &&
56 # the third n is to get out in case it mistakenly does not apply
57 (echo n; echo y; echo n) | git checkout -p HEAD &&
58 verify_saved_state bar &&