]> git.ipfire.org Git - thirdparty/git.git/commit
run-command: refactor subprocess env preparation
authorJonathan Tan <jonathantanmy@google.com>
Thu, 17 Jun 2021 17:13:25 +0000 (10:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jun 2021 16:58:01 +0000 (09:58 -0700)
commitd1fa94356ddd2a81348532d49030cd08d0df6a4d
treeaa09a8f24a0f25e20d184030ee2c3dde782e9b4a
parent69bb2e1804d2f3e5ba7ef365fdfd1937b4d7ca0a
run-command: refactor subprocess env preparation

submodule.c has functionality that prepares the environment for running
a subprocess in a new repo. The lazy-fetching code (used in partial
clones) will need this in a subsequent commit, so move it to a more
central location.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c
run-command.h
submodule.c