X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=exec_cmd.c;h=3996bce33fe11b8f0bae120fabd40a74c66de342;hb=b6936205e73c058784288d21d1937e5bba26b91b;hp=5d6a1247b4a1955dffae2b52da064a6eb489d83b;hpb=7cf67205ca68a157c6ffdb4e5a4ff231217c0871;p=git.git diff --git a/exec_cmd.c b/exec_cmd.c index 5d6a1247b..3996bce33 100644 --- a/exec_cmd.c +++ b/exec_cmd.c @@ -21,7 +21,7 @@ const char *git_exec_path(void) if (current_exec_path) return current_exec_path; - env = getenv("GIT_EXEC_PATH"); + env = getenv(EXEC_PATH_ENVIRONMENT); if (env && *env) { return env; } @@ -35,7 +35,7 @@ int execv_git_cmd(const char **argv) char git_command[PATH_MAX + 1]; int i; const char *paths[] = { current_exec_path, - getenv("GIT_EXEC_PATH"), + getenv(EXEC_PATH_ENVIRONMENT), builtin_exec_path }; for (i = 0; i < ARRAY_SIZE(paths); ++i) {