This change in 2.0.9 is a bit problematic:
- Even if a pathis explicitly provided to the constructor, theGIT_DIRenvironment variable is used instead
- For things like git hooks, GIT_DIRis set to.gitby default. This will result inself.git_dirbeing set to.git(os.path.abspathinstead ofos.path.normpathwould fix this). Consequently, subsequent commands fails (eg:repo.git.status())