Add patch from to 0.3 branch.
https://github.com/gitpython-developers/GitPython/commit/f362d10fa24395c21b1629923ccd705ba73ae996
Related to #43