mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
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>
This commit is contained in:
parent
bef19da9b6
commit
cf32190aa6
10
git.c
10
git.c
|
@ -443,11 +443,11 @@ int main(int argc, const char **argv)
|
||||||
cmd = argv[0];
|
cmd = argv[0];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We search for git commands in the following order:
|
* We execute external git command via execv_git_cmd(),
|
||||||
* - git_exec_path()
|
* which looks at "--exec-path" option, GIT_EXEC_PATH
|
||||||
* - the path of the "git" command if we could find it
|
* environment, and $(gitexecdir) in Makefile while built,
|
||||||
* in $0
|
* in this order. For scripted commands, we prepend
|
||||||
* - the regular PATH.
|
* the value of the exec_path variable to the PATH.
|
||||||
*/
|
*/
|
||||||
if (exec_path)
|
if (exec_path)
|
||||||
prepend_to_path(exec_path, strlen(exec_path));
|
prepend_to_path(exec_path, strlen(exec_path));
|
||||||
|
|
Loading…
Reference in a new issue