Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
in 0.3.2 executing git commands using environment variables breaks #207
Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to allow users to control behaviour.
To reproduce, clone the GitPython repo, checkout the current 0.3 branch and within execute the following command
PYTHONPATH=. python -c 'import os import git test = git.Git(".") os.environ["GIT_EDITOR"] = "cat" test.var("GIT_EDITOR")'
Output will be:
This breaks https://github.com/stackforge/git-upstream usage of GitPython.