@matheusbsbs / matheus-bagliano / commits / b658d50325
Fork 0

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>

Simon Hausmann committed Jun 25, 2007 at 13:04 UTC b658d50325c938d87d4891cb62e2eefb0b58a62c
1 file changed +1 -1
contrib/workdir/git-new-workdir
+1 -1
@@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null &&
24 git rev-parse --git-dir 2>/dev/null) ||
25 die "\"$orig_git\" is not a git repository!"
26
27 -if test "$git_dir" == ".git"
27 +if test "$git_dir" = ".git"
28 then
29 git_dir="$orig_git/.git"
30 fi