Untested fix for #172

See https://github.com/gitpython-developers/GitPython/issues/172 for
more information