aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2017-01-04 01:27:07 +0530
committerJunio C Hamano <gitster@pobox.com>2017-01-07 13:20:01 -0800
commitc7cf956618c4af9f3151a90d7552b05767e6444f (patch)
treeea074b87fcb872c13df8b0b5d2c3d2b12c5a89d6 /t/t5516-fetch-push.sh
parentSync with maint-2.10 (diff)
downloadgit-c7cf956618c4af9f3151a90d7552b05767e6444f.tar.gz
git-c7cf956618c4af9f3151a90d7552b05767e6444f.zip
don't use test_must_fail with grep
test_must_fail should only be used for testing git commands. To test the failure of other commands use `!`. Reported-by: Stefan Beller <sbeller@google.com> Signed-off-by: Pranit Bauva <pranit.bauva@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 26b2cafc47..0fc5a7c596 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -1004,7 +1004,7 @@ test_expect_success 'push --porcelain' '
test_expect_success 'push --porcelain bad url' '
mk_empty testrepo &&
test_must_fail git push >.git/bar --porcelain asdfasdfasd refs/heads/master:refs/remotes/origin/master &&
- test_must_fail grep -q Done .git/bar
+ ! grep -q Done .git/bar
'
test_expect_success 'push --porcelain rejected' '
-01 16:57:53 -0800'>2005-11-01cvsimport: cvsps should be quiet tooMartin Langhoff1-0/+1 2005-11-01cvsimport: introduce -P <cvsps-output-file> optionMartin Langhoff2-4/+12 2005-11-01cvsimport: catch error condition where cvs host disappearsMartin Langhoff1-0/+4 2005-11-01Do not install backward compatibility links anymore.Junio C Hamano2-5/+12 2005-11-01Strip any trailing slash on destination argumentJosef Weidendorfer1-0/+2 2005-11-01git-am.txt is no stub anymorePetr Baudis1-2/+0 2005-11-01Documentation for git-fmt-merge-msgPetr Baudis2-0/+49 2005-11-01Remove git-findtags.perlPetr Baudis2-95/+1 2005-11-01Remove 'Previously this command was known as ...' messages.Jon Loeliger1-44/+0 2005-11-01Fix constness of input in mozilla-sha1/sha1.c::SHA1_Update().Junio C Hamano2-3/+3 2005-11-01Document the use of "current directory" as pull source.Junio C Hamano2-1/+6 2005-10-30Add examples for git-log documentation and others.Linus Torvalds3-0/+45 2005-10-30Work around an RPM build problem.Junio C Hamano1-1/+1 2005-10-30Fix rev-list documentation again (--sparse and pathspec)Junio C Hamano1-4/+5 2005-10-30Update git-pack-objects documentation.Junio C Hamano1-1/+6 2005-10-30Update git-rev-list options list in rev-parse.Junio C Hamano1-0/+2 2005-10-30Update usage string and documentation for git-rev-list.Junio C Hamano2-17/+70 2005-10-30Add to usage and docs for git-add.shChris Shoemaker2-1/+15 2005-10-30Add to documentation of git-update-index arguments and usage.Chris Shoemaker2-8/+25 2005-10-30Add usage statement to git-checkout.shChris Shoemaker1-0/+7 2005-10-30GIT 0.99.9 master branch.Junio C Hamano1-1/+1 2005-10-29GIT 0.99.9v0.99.9Junio C Hamano2-1/+7 2005-10-29Documentation updates.Junio C Hamano3-7/+59 2005-10-29Do not mmap-copy the whole thing; just use copy_fd()Junio C Hamano1-18/+10 2005-10-29Teach local-fetch about lazy object directories.Junio C Hamano1-2/+3 2005-10-29Fix recent documentation format breakage.Junio C Hamano1-6/+6 2005-10-28make t5501 less annoyingJohannes Schindelin1-2/+2 2005-10-28fix multi_ack.Johannes Schindelin2-5/+10 2005-10-28git-fetch-pack: Support multi_ack extensionJohannes Schindelin2-17/+46 2005-10-28git-upload-pack: Support the multi_ack protocolJohannes Schindelin1-23/+24 2005-10-28Support receiving server capabilitiesJohannes Schindelin2-1/+16 2005-10-28git-upload-pack: More efficient usage of the has_sha1 arrayJohannes Schindelin1-5/+22