Skip to content

Commit

Permalink
git.c: execution path
Browse files Browse the repository at this point in the history
The comment before executing git subcommands were stale and confusing.
Noticed by Jeff King.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jul 31, 2007
1 parent bef19da commit cf32190
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cf32190

Please sign in to comment.