summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bef19da)
raw | patch | inline | side by side (parent: bef19da)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 31 Jul 2007 09:06:14 +0000 (02:06 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 31 Jul 2007 09:06:14 +0000 (02:06 -0700) |
The comment before executing git subcommands were stale and confusing.
Noticed by Jeff King.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Noticed by Jeff King.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c | patch | blob | history |
index a647f9c61e28e74a6294afcd8b01528e12d3c24d..7a788b9cfcf39bf714f67243132e73cee68da318 100644 (file)
--- a/git.c
+++ b/git.c
cmd = argv[0];
/*
- * We search for git commands in the following order:
- * - git_exec_path()
- * - the path of the "git" command if we could find it
- * in $0
- * - 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.
*/
if (exec_path)
prepend_to_path(exec_path, strlen(exec_path));