Code

Prepare execv_git_cmd() for removal of builtins from the filesystem
authorJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2007 06:09:22 +0000 (22:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2008 05:45:41 +0000 (22:45 -0700)
commit7550be0a2bbf47aaa63c806bb5d7fcb8ab197cf8
tree6039b53ba7b8b3bbd425113734c0a9996eed4d37
parent0a47dc110e042b5bcc63dc94c8d517e67efe9306
Prepare execv_git_cmd() for removal of builtins from the filesystem

Currently, execv_git_cmd() always try running the dashed form, which
means we cannot easily remove the git-foo hardlinks for built-in
commands.  This updates the function to always exec "git foo" form, and
makes sure "git" potty does not infinitely recurse to itself.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c
git.c