aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2010-09-21 20:35:59 -0400
committerJunio C Hamano <gitster@pobox.com>2010-09-27 10:48:23 -0700
commitafa0876050496d4250e8b27680e5cbc60fbda760 (patch)
tree6f787187a6574ef27a8048695498b4913dc8eb07 /contrib
parent055467dd4ae7fac2cf3149352710a5ee64b2138c (diff)
downloadgit-afa0876050496d4250e8b27680e5cbc60fbda760.tar.gz
git-afa0876050496d4250e8b27680e5cbc60fbda760.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/workdir/git-new-workdir2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir
index 3ad2c0cea..75e8b2581 100755
--- a/contrib/workdir/git-new-workdir
+++ b/contrib/workdir/git-new-workdir
@@ -42,7 +42,7 @@ then
fi
# don't link to a workdir
-if test -L "$git_dir/config"
+if test -h "$git_dir/config"
then
die "\"$orig_git\" is a working directory only, please specify" \
"a complete repository."