From: Junio C Hamano Date: Tue, 31 Jul 2007 09:06:14 +0000 (-0700) Subject: git.c: execution path X-Git-Tag: v1.5.3-rc4~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf32190aa6966dea519e77cdcc80b87026beb3b4;p=git.git git.c: execution path The comment before executing git subcommands were stale and confusing. Noticed by Jeff King. Signed-off-by: Junio C Hamano --- diff --git a/git.c b/git.c index a647f9c61..7a788b9cf 100644 --- a/git.c +++ b/git.c @@ -443,11 +443,11 @@ int main(int argc, const char **argv) 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));