Jul 16

Got the following error while trying to run gitosis-init on Ununtu 9.04. After a bit of searching found it was a known bug. Workaround is to edit /usr/bin/gitosis-init to use python 2.5 instead of python 2.6.

mick@builder:/srv/gitosis$ sudo -H -u gitosis /usr/bin/gitosis-init < /tmp/id_rsa.pub
Traceback (most recent call last):
  File "/usr/bin/gitosis-init", line 5, in 
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2562, in 
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: gitosis==0.2
mick@builder:/srv/gitosis$ /usr/bin/python2.

written by objects \\ tags: , , ,

Nov 24

You need to create the file ‘git-daemon-export-ok’ to indicate that the git is allowed to be exported.

touch myrepo.git/git-daemon-export-ok

written by objects \\ tags: , ,

Nov 19

We tried the following, but it didn’t work.

apt-get install git

The Debian git package is actually “GNU Interactive Tools”, the package you need for git is “git-core”.

apt-get install git-core

written by objects \\ tags: , , ,