summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2031427)
raw | patch | inline | side by side (parent: 2031427)
author | Brian Gernhardt <benji@silverinsanity.com> | |
Sun, 1 Jul 2007 15:48:54 +0000 (11:48 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 1 Jul 2007 21:47:20 +0000 (14:47 -0700) |
When wc outputs whitespace, the test "$(command | wc -l)" = 1 is
broken because " 1" != "1". Let the shell eat the whitespace by
using test 1 = $(command | wc -l) instead.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
broken because " 1" != "1". Let the shell eat the whitespace by
using test 1 = $(command | wc -l) instead.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh | patch | blob | history |
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 08d58e1c8c8d61d50c97b48d795ac1a574d56035..c0fa2ba404a7772af07d8546a51b05bd9b17ec2c 100755 (executable)
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
git branch -f frotz master &&
git push testrepo frotz &&
check_push_result $the_commit heads/frotz &&
- test "$( cd testrepo && git show-ref | wc -l )" = 1
+ test 1 = $( cd testrepo && git show-ref | wc -l )
'
test_expect_success 'push with colon-less refspec (4)' '
git tag -f frotz &&
git push testrepo frotz &&
check_push_result $the_commit tags/frotz &&
- test "$( cd testrepo && git show-ref | wc -l )" = 1
+ test 1 = $( cd testrepo && git show-ref | wc -l )
'