diff options
author | Jeff King <peff@peff.net> | 2016-04-28 09:37:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-28 10:47:34 -0700 |
commit | 860cba61a3eac38151fd203547df7515023303e9 (patch) | |
tree | a9d1429faa3e6485406ff08d7ea76344feaa5a89 /git-submodule.sh | |
parent | 455d22c1c6abc19693beb8a25bc3d976290d6b84 (diff) | |
download | git-860cba61a3eac38151fd203547df7515023303e9.tar.gz |
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 1f132b489b..91f5856df8 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -200,6 +200,7 @@ sanitize_submodule_env() sanitized_config=$(git submodule--helper sanitize-config) clear_local_git_env GIT_CONFIG_PARAMETERS=$sanitized_config + export GIT_CONFIG_PARAMETERS } # |