Fix for GitPython version compatibility.