Code

git-new-workdir: Fix shell warning about operator == used with test.
authorSimon Hausmann <simon@lst.de>
Mon, 25 Jun 2007 11:04:26 +0000 (13:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2007 01:18:47 +0000 (18:18 -0700)
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>
contrib/workdir/git-new-workdir

index 709b2a3ac0e7603eadd9f62a795967c415d554df..3ff6bd166ab7db5612a419ffcdc93b9b3d7eb2f8 100755 (executable)
@@ -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