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>
This commit is contained in:
Simon Hausmann 2007-06-25 13:04:26 +02:00 committed by Junio C Hamano
parent 4fb8c8075a
commit b658d50325

View file

@ -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