Add patch from to 0.3 branch.

Needed this rolled into 0.3, since 0.3 supports git 1.8.5+.
Original patch, on the master branch, can be found here:
https://github.com/gitpython-developers/GitPython/commit/f362d10fa24395c21b1629923ccd705ba73ae996
Related to #43