mricon/grokmirror

Incompatibility between GitPython <2.1.7 and git >2.15.0

Closed this issue · 1 comments

Just a heads up about a problem that I ran into. Git 2.15.0 added a comment to the packed-refs file that breaks the GitPython library.

gitpython-developers/GitPython#687

This was fixed with GitPython 2.1.8. I ran into this because my git servers are using the Ubuntu git-core PPA.

I was able to workaround this problem by setting up grokmirror in a virtualenv with GitPython 2.1.8. Because grokmirror is not available on pypi I had to generate the grokmirror python package and install it manually into the virtualenv.

I don't know what the best way to handle this is. Changing requirements.txt to require >=2.1.8 isn't necessary for servers with older git versions. Perhaps add version checks to grokmirror to detect this incompatibility?

Set requirements to GitPython>=2.1.8