author | Brian Gernhardt <brian@silverinsanity.com> | |
Fri, 25 Jun 2010 17:20:48 +0000 (13:20 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Jun 2010 17:54:04 +0000 (10:54 -0700) | ||
commit | 6ed7ddaadba9217b794aecf6d74a2e455daf7a96 | |
tree | a737d30a55681c332073eaef856c8c34949c3566 | tree | snapshot |
parent | dd44d419d30afa52b863efa07aeec738c4531ea9 | commit | diff |
t4027,4041: Use test -s to test for an empty file
The tests used a mixture of 'echo -n' (which is non-portable) and either
test_cmp or diff to check if a file is empty. The much easier and portable
method to check for an empty file is '! test -s'
While we're in t4027, there was an excess test_done. Remove it.
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The tests used a mixture of 'echo -n' (which is non-portable) and either
test_cmp or diff to check if a file is empty. The much easier and portable
method to check for an empty file is '! test -s'
While we're in t4027, there was an excess test_done. Remove it.
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4027-diff-submodule.sh | diff | blob | history | |
t/t4041-diff-submodule-option.sh | diff | blob | history |