1
0
mirror of https://github.com/git/git.git synced 2024-11-18 23:13:58 +01:00

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
This commit is contained in:
Junio C Hamano 2009-04-08 23:01:10 -07:00
commit 1f398ee772

@ -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);
}