提交 b658d503 编写于 作者: S Simon Hausmann 提交者: Junio C Hamano

git-new-workdir: Fix shell warning about operator == used with test.

Use = instead of == with test to test for equality.
Signed-off-by: NSimon Hausmann <simon@lst.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 4fb8c807
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册