summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorScott R Parish <srp@srparish.net>2007-10-28 04:17:20 -0700
committerJunio C Hamano <gitster@pobox.com>2007-10-29 20:51:37 -0700
commit511707d42b3b3e57d9623493092590546ffeae80 (patch)
tree7d37f2f06ad9f66c0595526332d7f8ac19a9c67e /tree-walk.c
parent0966003c8e8d1528912b10667b903cd981e3a7f6 (diff)
downloadgit-511707d42b3b3e57d9623493092590546ffeae80.tar.gz
use only the $PATH for exec'ing git commands
We need to correctly set up $PATH for non-c based git commands. Since we already do this, we can just use that $PATH and execvp, instead of looping over the paths with execve. This patch adds a setup_path() function to exec_cmd.c, which sets the $PATH order correctly for our search order. execv_git_cmd() is stripped down to setting up argv and calling execvp(). git.c's main() only only needs to call setup_path(). Signed-off-by: Scott R Parish <srp@srparish.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions