diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-01-15 02:48:45 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-01-20 20:57:42 -0800 |
commit | 5c08dbbdf1a2d2565606bb43f7e42a5968fcbdf1 (patch) | |
tree | db9739be96336cd499850fbf71dcd750a405f939 /tar.h | |
parent | git-submodule: rename shell functions for consistency (diff) | |
download | tgif-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 'tar.h')
0 files changed, 0 insertions, 0 deletions