Gitosis Problem

by Wolfram Saringer  (2009-07-20)
last change: 2009-07-20

As gitosis suddenly told me the following when doing a push:

$ git push
Traceback (most recent call last):
File "/usr/bin/gitosis-serve", line 8, in <module>
load_entry_point('gitosis==0.2', 'console_scripts', 'gitosis-serve')()
File "/usr/lib/python2.5/site-packages/gitosis-0.2-py2.5.egg/gitosis/", line 24, in run
return app.main()
File "/usr/lib/python2.5/site-packages/gitosis-0.2-py2.5.egg/gitosis/", line 38, in main
self.handle_args(parser, cfg, options, args)
File "/usr/lib/python2.5/site-packages/gitosis-0.2-py2.5.egg/gitosis/", line 204, in handle_args
os.execvp('git', ['git', 'shell', '-c', newcmd])
File "/usr/lib/python2.5/", line 354, in execvp
_execvpe(file, args)
File "/usr/lib/python2.5/", line 392, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
fatal: The remote end hung up unexpectedly

The reason was taht unexplicably it somehow forgot a path (git is installed unter /usr/local on that server). Adding a symlink on the server

ln -s /usr/local/bin/git /usr/bin

solved the problem. Adding the PATH variable to the users homedirectories .bashrc (and/or .profile) did not help.

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.