From: David Kågedal Date: Thu, 18 Jan 2007 11:15:13 +0000 (+0100) Subject: Shell syntax fix in git-reset X-Git-Tag: v1.5.0-rc2~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a5cd09f993c0dd96f0c70fd1266f7c58b4f52446;p=git.git Shell syntax fix in git-reset Signed-off-by: Junio C Hamano --- diff --git a/git-reset.sh b/git-reset.sh index bf2a0581f..fee6d98d9 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 -- "$@" |