]> git.ipfire.org Git - thirdparty/git.git/commit
git-submodule.sh: remove unused sanitize_submodule_env()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 28 Jun 2022 10:05:23 +0000 (12:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2022 20:13:16 +0000 (13:13 -0700)
commit85775255f18e0a6a6b2e65394bc18ec440dba99d
tree2ac1f52d8824416690d8480f307e6511fac28c01
parent8168d5e9c23ed44ae3d604f392320d66556453c9
git-submodule.sh: remove unused sanitize_submodule_env()

The sanitize_submodule_env() function was last used before
b3c5f5cb048 (submodule: move core cmd_update() logic to C,
2022-03-15), let's remove it.

This also allows us to remove clear_local_git_env() from
git-sh-setup.sh. That function hasn't been documented in
Documentation/git-sh-setup.sh, and since 14111fc4927 (git: submodule
honor -c credential.* from command line, 2016-02-29) it had only been
used in the sanitize_submodule_env() function being removed here.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh
git-submodule.sh