summaryrefslogtreecommitdiff
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.keller@gmail.com>2016-02-29 22:58:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-03-01 20:23:58 (GMT)
commitd10e3b4260628fbe07117e2b57003291500e4f47 (patch)
tree69363ea3ed06b040bdea153fad2ff540c5931608 /builtin/submodule--helper.c
parent59223223f478b291c6dbe59ca0bca3c6178da7a0 (diff)
downloadgit-d10e3b4260628fbe07117e2b57003291500e4f47.zip
git-d10e3b4260628fbe07117e2b57003291500e4f47.tar.gz
git-d10e3b4260628fbe07117e2b57003291500e4f47.tar.bz2
submodule: don't pass empty string arguments to submodule--helper clone
When --reference or --depth are unused, the current git-submodule.sh results in empty "" arguments appended to the end of the argv array inside git submodule--helper clone. This is not caught because the argc count is not checked today. Fix git-submodule.sh to only pass an argument when --reference or --depth are used, preventing the addition of two empty string arguments on the tail of 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>
Diffstat (limited to 'builtin/submodule--helper.c')
0 files changed, 0 insertions, 0 deletions