Skip to content

Commit

Permalink
Merge branch 'js/maint-1.6.0-exec-path-env' into maint-1.6.1
Browse files Browse the repository at this point in the history
* js/maint-1.6.0-exec-path-env:
  Propagate --exec-path setting to external commands via GIT_EXEC_PATH
  • Loading branch information
Junio C Hamano committed Apr 9, 2009
2 parents 5b841d6 + c90d565 commit 1f398ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exec_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 1f398ee

Please sign in to comment.