We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef19da commit cf32190Copy full SHA for cf32190
git.c
@@ -443,11 +443,11 @@ int main(int argc, const char **argv)
443
cmd = argv[0];
444
445
/*
446
- * We search for git commands in the following order:
447
- * - git_exec_path()
448
- * - the path of the "git" command if we could find it
449
- * in $0
450
- * - the regular PATH.
+ * We execute external git command via execv_git_cmd(),
+ * which looks at "--exec-path" option, GIT_EXEC_PATH
+ * environment, and $(gitexecdir) in Makefile while built,
+ * in this order. For scripted commands, we prepend
+ * the value of the exec_path variable to the PATH.
451
*/
452
if (exec_path)
453
prepend_to_path(exec_path, strlen(exec_path));
0 commit comments