Merge branch 'rr/maint-submodule-unknown-cmd'
* rr/maint-submodule-unknown-cmd: submodule: if $command was not matched, don't parse other args
This commit is contained in:
@ -1107,7 +1107,15 @@ do
|
||||
done
|
||||
|
||||
# No command word defaults to "status"
|
||||
test -n "$command" || command=status
|
||||
if test -z "$command"
|
||||
then
|
||||
if test $# = 0
|
||||
then
|
||||
command=status
|
||||
else
|
||||
usage
|
||||
fi
|
||||
fi
|
||||
|
||||
# "-b branch" is accepted only by "add"
|
||||
if test -n "$branch" && test "$command" != add
|
||||
|
||||
Reference in New Issue
Block a user