summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-09 06:01:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-09 06:01:10 (GMT)
commit1f398ee772552ba9763d979cf66566e48acfa302 (patch)
tree0d857fb5a3ad13fd5f20c03e871a9e34b9ca49b3
parent5b841d61c428bc8dbb9e3b5afd12781aff51eb2a (diff)
parentc90d565a46a664663467557d381417a3153fe26e (diff)
downloadgit-1f398ee772552ba9763d979cf66566e48acfa302.zip
git-1f398ee772552ba9763d979cf66566e48acfa302.tar.gz
git-1f398ee772552ba9763d979cf66566e48acfa302.tar.bz2
Merge branch 'js/maint-1.6.0-exec-path-env' into maint-1.6.1
* 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 cdd35f9..351fec2 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -25,6 +25,10 @@ void git_set_argv0_path(const char *path)
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);
}