]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/submodule--helper.c
submodule: check argc count for git submodule--helper clone
authorJacob Keller <jacob.keller@gmail.com>
Mon, 29 Feb 2016 22:58:31 +0000 (14:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 20:24:03 +0000 (12:24 -0800)
commit08e0970a862aaa3b42c532ad0086bcaabe5108cf
treeaae617b663d02b02448fc87ea1dabc17cd1eefc5
parentd10e3b4260628fbe07117e2b57003291500e4f47
submodule: check argc count for git submodule--helper clone

Extra unused arguments to git submodule--helper clone subcommand were
being silently ignored. Add a check to the argc count after options
handling to ensure that no extra arguments were left on the argv array.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c