summaryrefslogtreecommitdiff
path: root/contrib/workdir
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2010-09-22 00:35:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-27 17:48:23 (GMT)
commitafa0876050496d4250e8b27680e5cbc60fbda760 (patch)
tree6f787187a6574ef27a8048695498b4913dc8eb07 /contrib/workdir
parent055467dd4ae7fac2cf3149352710a5ee64b2138c (diff)
downloadgit-afa0876050496d4250e8b27680e5cbc60fbda760.zip
git-afa0876050496d4250e8b27680e5cbc60fbda760.tar.gz
git-afa0876050496d4250e8b27680e5cbc60fbda760.tar.bz2
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 3ad2c0c..75e8b25 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."