t5516-fetch-push: fix broken &&-chain
b2dc968e60 (t5516: refactor oddball tests, 2008-11-07) accidentaly broke the &&-chain in the test 'push does not update local refs on failure', but since it was in a subshell, chain-lint couldn't notice it. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
SZEDER Gábor committed
May 10, 2018 at 16:01 UTC
f6b82970aa8b81dbaf9242c5a0b33dd8a08431b7
1 file changed
+1
-1
t/t5516-fetch-push.sh
+1
-1
@@ -612,7 +612,7 @@ test_expect_success 'push does not update local refs on failure' '
612
chmod +x testrepo/.git/hooks/pre-receive &&
613
(
614
cd child &&
615
- git pull .. master
615
+ git pull .. master &&
616
test_must_fail git push &&
617
test $(git rev-parse master) != \
618
$(git rev-parse remotes/origin/master)