Skip to content

Commit

Permalink
Fix off-by-one error in git-merge
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Junio C Hamano committed Sep 13, 2005
1 parent 22c67ca commit f88ed17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ do
case "$#,$1" in
*,*=*)
strategy=`expr "$1" : '-[^=]*=\(.*\)'` ;;
0,*)
1,*)
usage ;;
*)
strategy="$2"
Expand Down

0 comments on commit f88ed17

Please sign in to comment.