summaryrefslogtreecommitdiff
path: root/contrib/workdir
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2010-09-21 20:35:59 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-09-27 10:48:23 -0700
commitafa0876050496d4250e8b27680e5cbc60fbda760 (patch)
tree6f787187a6574ef27a8048695498b4913dc8eb07 /contrib/workdir
parentCodingGuidelines: spell Arithmetic Expansion with $(($var)) (diff)
downloadtgif-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/workdir')
-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 3ad2c0cea5..75e8b25817 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."