summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-26 00:27:03 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-26 00:27:03 -0700
commitb2aa958dc29eb836a831138f6d84ad7cfadf4355 (patch)
treec8e96da843ac29e2007ad8205a938aa607866dab /exec_cmd.c
parent23fd723c9dfbe9b558c0d9a46696ca93f93bab04 (diff)
parentc90d565a46a664663467557d381417a3153fe26e (diff)
downloadgit-b2aa958dc29eb836a831138f6d84ad7cfadf4355.tar.gz
Merge branch 'js/maint-1.6.0-exec-path-env'
* js/maint-1.6.0-exec-path-env: Propagate --exec-path setting to external commands via GIT_EXEC_PATH
Diffstat (limited to 'exec_cmd.c')
-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);
}