summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-04-02 12:02:25 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-04-02 12:02:25 -0700
commit1e7ef0253c91bf2f25f9d8e44795b642737e664e (patch)
tree09e0414afd4cadedcd48d0648650ef7d351572f3
parentMerge branch 'bc/maint-1.6.1-branch-deleted-was' into maint (diff)
parentPropagate --exec-path setting to external commands via GIT_EXEC_PATH (diff)
downloadtgif-1e7ef0253c91bf2f25f9d8e44795b642737e664e.tar.xz
Merge branch 'js/maint-1.6.0-exec-path-env' into maint
* js/maint-1.6.0-exec-path-env: Propagate --exec-path setting to external commands via GIT_EXEC_PATH
-rw-r--r--exec_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exec_cmd.c b/exec_cmd.c
index 217c12577f..408e4e55e1 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -61,6 +61,10 @@ const char *git_extract_argv0_path(const char *argv0)
void git_set_argv_exec_path(const char *exec_path)
{
argv_exec_path = exec_path;
+ /*
+ * Propagate this setting to external programs.
+ */
+ setenv(EXEC_PATH_ENVIRONMENT, exec_path, 1);
}