From: Jeff King Date: Thu, 28 Apr 2016 13:39:15 +0000 (-0400) Subject: submodule: use prepare_submodule_repo_env consistently X-Git-Tag: v2.9.0-rc0~34^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c12e8656700be6084aec49df66447e701fda1ecf?hp=c12e8656700be6084aec49df66447e701fda1ecf submodule: use prepare_submodule_repo_env consistently Before 14111fc (git: submodule honor -c credential.* from command line, 2016-02-29), it was sufficient for code which spawned a process in a submodule to just set the child process's "env" field to "local_repo_env" to clear the environment of any repo-specific variables. That commit introduced a more complicated procedure, in which we clear most variables but allow through sanitized config. For C code, we used that procedure only for cloning, but not for any of the programs spawned by submodule.c. As a result, things like "git fetch --recurse-submodules" behave differently than "git clone --recursive"; the former will not pass through the sanitized config. We can fix this by using prepare_submodule_repo_env() everywhere in submodule.c. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---