Compatibility with python-git 0.3.0+