t5516-fetch-push: fix broken &&-chain
authorSZEDER Gábor <szeder.dev@gmail.com>
Thu, 10 May 2018 14:01:54 +0000 (16:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 May 2018 03:32:53 +0000 (12:32 +0900)
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>
t/t5516-fetch-push.sh
index 0ed3ad0c7b4994acd12327e013ba359a41981738..013fb102d27512784d88a51d2b58aa39cf4451c5 100755 (executable)
@@ -612,7 +612,7 @@ test_expect_success 'push does not update local refs on failure' '
        chmod +x testrepo/.git/hooks/pre-receive &&
        (
                cd child &&
-               git pull .. master
+               git pull .. master &&
                test_must_fail git push &&
                test $(git rev-parse master) != \
                        $(git rev-parse remotes/origin/master)