git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Shell syntax fix in git-reset

From
David Kågedal <davidk@lysator.liu.se>
Date
Jan 18, 2007, 11:15 UTC
Message-ID
<87ac0gfuwu.fsf@morpheus.local>
---
 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.

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
Next: Junio C Hamano
Message 1 of 2 in “Shell syntax fix in git-reset”
  1. Shell syntax fix in git-resetDavid Kågedal, Jan 18, 2007
  2. Junio C HamanoJan 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.