mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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) ||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue