Explorar o código

Merge pull request #994 from stspdotname/gitpath

compat tests: honour PATH environment variable in run_git()
Jelmer Vernooij %!s(int64=2) %!d(string=hai) anos
pai
achega
477a3e19f3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dulwich/tests/compat/utils.py

+ 1 - 0
dulwich/tests/compat/utils.py

@@ -139,6 +139,7 @@ def run_git(
 
     env = popen_kwargs.pop("env", {})
     env["LC_ALL"] = env["LANG"] = "C"
+    env["PATH"] = os.getenv("PATH")
 
     args = [git_path] + args
     popen_kwargs["stdin"] = subprocess.PIPE