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) | ||
commit | 9a3c6f7ba7c567e277da58a45ac6fa50461297e3 | |
tree | ed5c342805ca162d9c78c5f3d9de578f65c4b475 | tree | snapshot |
parent | 20314271679e169f324c118c69c8d9e0399feec9 | commit | diff |
Fix t5516-fetch for systems where `wc -l` outputs whitespace.
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>
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>
t/t5516-fetch-push.sh | diff | blob | history |