summaryrefslogtreecommitdiff
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2018-05-10 14:01:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-11 03:32:53 (GMT)
commitf6b82970aa8b81dbaf9242c5a0b33dd8a08431b7 (patch)
treeefc93ef802116d7f5b73e460698d7b40fa410683 /t/t5516-fetch-push.sh
parentcfb482b6c33508c3a14b721b1e48a881fcbe7146 (diff)
downloadgit-f6b82970aa8b81dbaf9242c5a0b33dd8a08431b7.zip
git-f6b82970aa8b81dbaf9242c5a0b33dd8a08431b7.tar.gz
git-f6b82970aa8b81dbaf9242c5a0b33dd8a08431b7.tar.bz2
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>
Diffstat (limited to 't/t5516-fetch-push.sh')
-rwxr-xr-xt/t5516-fetch-push.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 0ed3ad0..013fb10 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -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)