Browse Source

Merge pull request #994 from stspdotname/gitpath

compat tests: honour PATH environment variable in run_git()
Jelmer Vernooij 2 years ago
parent
commit
477a3e19f3
1 changed files with 1 additions and 0 deletions
  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