git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-new-workdir: Fix shell warning about operator == used with test.
@ 2007-06-25 11:04 Simon Hausmann
  2007-06-27  2:14 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Hausmann @ 2007-06-25 11:04 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Use = instead of == with test to test for equality.

Signed-off-by: Simon Hausmann <simon@lst.de>
---
 contrib/workdir/git-new-workdir |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir
index 709b2a3..3ff6bd1 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
-- 
1.5.2.2.549.gaeb59

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-27  2:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25 11:04 [PATCH] git-new-workdir: Fix shell warning about operator == used with test Simon Hausmann
2007-06-27  2:14 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).