diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-07-31 02:06:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-31 02:06:14 -0700 |
commit | cf32190aa6966dea519e77cdcc80b87026beb3b4 (patch) | |
tree | 4c6a72a7b769458a1cec2c325b243b6720f216a1 | |
parent | bef19da9b663044887ecac5ee091ca93567ef331 (diff) | |
download | git-cf32190aa6966dea519e77cdcc80b87026beb3b4.tar.gz git-cf32190aa6966dea519e77cdcc80b87026beb3b4.tar.xz |
git.c: execution path
The comment before executing git subcommands were stale and confusing.
Noticed by Jeff King.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | git.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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)); |