diff options
author | Jeff King <peff@peff.net> | 2010-09-21 20:35:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-27 10:48:23 -0700 |
commit | afa0876050496d4250e8b27680e5cbc60fbda760 (patch) | |
tree | 6f787187a6574ef27a8048695498b4913dc8eb07 /contrib | |
parent | 055467dd4ae7fac2cf3149352710a5ee64b2138c (diff) | |
download | git-afa0876050496d4250e8b27680e5cbc60fbda760.tar.gz |
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-x | contrib/workdir/git-new-workdir | 2 |
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." |