submodule: export sanitized GIT_CONFIG_PARAMETERS
authorJeff King <peff@peff.net>
Thu, 28 Apr 2016 13:37:44 +0000 (09:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Apr 2016 17:47:34 +0000 (10:47 -0700)
commit860cba61a3eac38151fd203547df7515023303e9
treea9d1429faa3e6485406ff08d7ea76344feaa5a89
parent455d22c1c6abc19693beb8a25bc3d976290d6b84
submodule: export sanitized GIT_CONFIG_PARAMETERS

Commit 14111fc (git: submodule honor -c credential.* from
command line, 2016-02-29) taught git-submodule.sh to save
the sanitized value of $GIT_CONFIG_PARAMETERS when clearing
the environment for a submodule. However, it failed to
export the result, meaning that it had no effect for any
sub-programs.

We didn't catch this in our initial tests because we checked
only the "clone" case, which does not go through the shell
script at all. Provoking "git submodule update" to do a
fetch demonstrates the bug.

Noticed-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t5550-http-fetch-dumb.sh