Skip to content

Commit

Permalink
Search PATH for git-shell, don't assume /usr/bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi Virtanen authored and tv42 committed Aug 12, 2007
1 parent 2a7f48f commit 2c8eeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitosis/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit 2c8eeb7

Please sign in to comment.