Skip to content

Commit 1f398ee

Browse files
committed
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
2 parents 5b841d6 + c90d565 commit 1f398ee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

exec_cmd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ void git_set_argv0_path(const char *path)
2525
void git_set_argv_exec_path(const char *exec_path)
2626
{
2727
argv_exec_path = exec_path;
28+
/*
29+
* Propagate this setting to external programs.
30+
*/
31+
setenv(EXEC_PATH_ENVIRONMENT, exec_path, 1);
2832
}
2933

3034

0 commit comments

Comments
 (0)