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:
parent
4fb8c8075a
commit
b658d50325
@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null &&
|
|||||||
git rev-parse --git-dir 2>/dev/null) ||
|
git rev-parse --git-dir 2>/dev/null) ||
|
||||||
die "\"$orig_git\" is not a git repository!"
|
die "\"$orig_git\" is not a git repository!"
|
||||||
|
|
||||||
if test "$git_dir" == ".git"
|
if test "$git_dir" = ".git"
|
||||||
then
|
then
|
||||||
git_dir="$orig_git/.git"
|
git_dir="$orig_git/.git"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user