summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22c67ca)
raw | patch | inline | side by side (parent: 22c67ca)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Sep 2005 05:20:42 +0000 (22:20 -0700) | ||
committer | Junio 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>
not give usage as it should.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge.sh | patch | blob | history |
diff --git a/git-merge.sh b/git-merge.sh
index a784e0f2cc5935a68795cb9f5ecf1b13716477f6..e51e73499a1cf65cec94ed7f0134e3abc72435a6 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
case "$#,$1" in
*,*=*)
strategy=`expr "$1" : '-[^=]*=\(.*\)'` ;;
- 0,*)
+ 1,*)
usage ;;
*)
strategy="$2"