Fix off-by-one error in git-merge
authorJunio C Hamano <junkio@cox.net>
Tue, 13 Sep 2005 05:20:42 +0000 (22:20 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 13 Sep 2005 05:52:52 +0000 (22:52 -0700)
'git-merge -s' without a strategy name does not fail and does
not give usage as it should.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge.sh

index a784e0f..e51e734 100755 (executable)
@@ -43,7 +43,7 @@ do
                case "$#,$1" in
                *,*=*)
                        strategy=`expr "$1" : '-[^=]*=\(.*\)'` ;;
-               0,*)
+               1,*)
                        usage ;;
                *)
                        strategy="$2"