projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb8c80
)
git-new-workdir: Fix shell warning about operator == used with test.
author
Simon Hausmann
<simon@lst.de>
Mon, 25 Jun 2007 11:04:26 +0000
(13:04 +0200)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/contrib/workdir/git-new-workdir
b/contrib/workdir/git-new-workdir
index 709b2a3ac0e7603eadd9f62a795967c415d554df..3ff6bd166ab7db5612a419ffcdc93b9b3d7eb2f8 100755
(executable)
--- 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