Skip to content

Commit 1e7ef02

Browse files
committed
Merge branch 'js/maint-1.6.0-exec-path-env' into maint
* js/maint-1.6.0-exec-path-env: Propagate --exec-path setting to external commands via GIT_EXEC_PATH
2 parents 8afd317 + c90d565 commit 1e7ef02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

exec_cmd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ const char *git_extract_argv0_path(const char *argv0)
6161
void git_set_argv_exec_path(const char *exec_path)
6262
{
6363
argv_exec_path = exec_path;
64+
/*
65+
* Propagate this setting to external programs.
66+
*/
67+
setenv(EXEC_PATH_ENVIRONMENT, exec_path, 1);
6468
}
6569

6670

0 commit comments

Comments
 (0)