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)
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>
No differences found