prefer test -h over test -L in shell scripts
Even though "-L" is POSIX, the former is more portable, and we tend to prefer it already. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
055467dd4a
commit
afa0876050
@ -88,7 +88,7 @@ test_expect_success 'enable broken symlink workaround' \
|
||||
test_expect_success '"bar" is an empty file' 'test -f x/bar && ! test -s x/bar'
|
||||
test_expect_success 'get "bar" => symlink fix from svn' \
|
||||
'(cd x && git svn rebase)'
|
||||
test_expect_success SYMLINKS '"bar" becomes a symlink' 'test -L x/bar'
|
||||
test_expect_success SYMLINKS '"bar" becomes a symlink' 'test -h x/bar'
|
||||
|
||||
|
||||
test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" y'
|
||||
|
Reference in New Issue
Block a user