summaryrefslogtreecommitdiff
path: root/pack-redundant.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-01-15 02:48:45 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-01-20 20:57:42 -0800
commit5c08dbbdf1a2d2565606bb43f7e42a5968fcbdf1 (patch)
treedb9739be96336cd499850fbf71dcd750a405f939 /pack-redundant.c
parentgit-submodule: rename shell functions for consistency (diff)
downloadtgif-5c08dbbdf1a2d2565606bb43f7e42a5968fcbdf1.tar.xz
git-submodule: fix subcommand parser
The subcommand parser of "git submodule" made its subcommand names reserved words. As a consequence, a command like this: $ git submodule add init update which is meant to add a submodule called 'init' at path 'update' was misinterpreted as a request to invoke more than one mutually incompatible subcommands and incorrectly rejected. This patch fixes the issue by stopping the subcommand parsing at the first subcommand word, to allow the sample command line above to work as expected. It also introduces the usual -- option disambiguator, so that a submodule at path '-foo' can be updated with $ git submodule update -- -foo without triggering an "unrecognized option -foo" error. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-redundant.c')
0 files changed, 0 insertions, 0 deletions