diff --git a/exec_cmd.c b/exec_cmd.c
index 217c12577f52b8ff9d535a086ec75d54107ee01c..b2c07c70ce26312d81f499d3acf90dab919f1d24 100644 (file)
--- a/exec_cmd.c
+++ b/exec_cmd.c
!(prefix = strip_path_suffix(argv0_path, BINDIR)) &&
!(prefix = strip_path_suffix(argv0_path, "git"))) {
prefix = PREFIX;
- fprintf(stderr, "RUNTIME_PREFIX requested, "
+ trace_printf("RUNTIME_PREFIX requested, "
"but prefix computation failed. "
"Using static fallback '%s'.\n", prefix);
}
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);
}