From: Simon Hausmann Date: Mon, 25 Jun 2007 11:04:26 +0000 (+0200) Subject: git-new-workdir: Fix shell warning about operator == used with test. X-Git-Tag: v1.5.3-rc0~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b658d50325c938d87d4891cb62e2eefb0b58a62c;p=git.git 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 Signed-off-by: Junio C Hamano --- 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