diff --git a/gitosis/serve.py b/gitosis/serve.py index 40a2141..b1ed548 100644 --- a/gitosis/serve.py +++ b/gitosis/serve.py @@ -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.")