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:
Junio C Hamano
2012-09-29 22:28:32 -07:00
3 changed files with 11 additions and 4 deletions

View File

@ -438,8 +438,8 @@ test_expect_success 'moving to a commit without submodule does not leave empty d
git checkout second
'
test_expect_success 'submodule <invalid-path> warns' '
test_failure_with_unknown_submodule
test_expect_success 'submodule <invalid-subcommand> fails' '
test_must_fail git submodule no-such-subcommand
'
test_expect_success 'add submodules without specifying an explicit path' '