aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSimon Hausmann <simon@lst.de>2007-06-25 13:04:26 +0200
committerJunio C Hamano <gitster@pobox.com>2007-06-26 18:18:47 -0700
commitb658d50325c938d87d4891cb62e2eefb0b58a62c (patch)
tree5812f970211b50916c4de4bf7d829d9792596828 /contrib
parent4fb8c8075a9952a9d544721e2122a1b2941d8ef6 (diff)
downloadgit-b658d50325c938d87d4891cb62e2eefb0b58a62c.tar.gz
git-b658d50325c938d87d4891cb62e2eefb0b58a62c.tar.xz
git-new-workdir: Fix shell warning about operator == used with test.
Use = instead of == with test to test for equality. Signed-off-by: Simon Hausmann <simon@lst.de> 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 709b2a3ac..3ff6bd166 100755
--- a/contrib/workdir/git-new-workdir
+++ b/contrib/workdir/git-new-workdir
@@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null &&
git rev-parse --git-dir 2>/dev/null) ||
die "\"$orig_git\" is not a git repository!"
-if test "$git_dir" == ".git"
+if test "$git_dir" = ".git"
then
git_dir="$orig_git/.git"
fi