Search PATH for git-shell, don't assume /usr/bin.

This commit is contained in:
Tommi Virtanen 2007-08-11 17:23:51 -07:00 committed by Tommi Virtanen
parent 2a7f48f06e
commit 2c8eeb7d3b

View file

@ -118,5 +118,5 @@ def main():
command=command,
newpath=newpath,
)
os.execve('/usr/bin/git-shell', ['git-shell', '-c', newcmd], {})
os.execvpe('git-shell', ['git-shell', '-c', newcmd], {})
die("Cannot execute git-shell.")