Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/maint-1.6.0-exec-path-env' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Apr 2009 19:02:25 +0000
(12:02 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Apr 2009 19:02:25 +0000
(12:02 -0700)
* js/maint-1.6.0-exec-path-env:
Propagate --exec-path setting to external commands via GIT_EXEC_PATH
exec_cmd.c
patch
|
blob
|
history
raw
(from parent 1:
8afd317
)
diff --git
a/exec_cmd.c
b/exec_cmd.c
index 217c12577f52b8ff9d535a086ec75d54107ee01c..408e4e55e1c58931444c772d35d23b505bf3e2ea 100644
(file)
--- 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);
}