threads / patch / 6424

patchShell syntax fix in git-reset

Subject: [PATCH] Shell syntax fix in git-reset

## tl;dr

2 messages between Jan 18, 2007 and Jan 19, 2007. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

David Kågedal· Jan 18, 2007, 11:15 UTC · lore
---
 git-reset.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

My /bin/sh is a symlink to dash, which is probably why I got this and few others.

Show changes to git-reset.sh +1 −1
diff --git a/git-reset.sh b/git-reset.sh
index bf2a058..fee6d98 100755
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -43,7 +43,7 @@ case "$1" in --) shift ;; esac
 # affecting the working tree nor HEAD.
 if test $# != 0
 then
-	test "$reset_type" == "--mixed" ||
+	test "$reset_type" = "--mixed" ||
 		die "Cannot do partial $reset_type reset."
 
 	git-diff-index --cached $rev -- "$@" |
-- 
1.5.0.rc1.g04f3-dirty


-- 
David Kågedal

← back to recent threads