Skip to content

Commit

Permalink
Merge pull request #498 from DSD-DBS/fix-ls-remote-env
Browse files Browse the repository at this point in the history
Use system environment when running ls-remote
  • Loading branch information
MoritzWeber0 authored Jan 4, 2023
2 parents 6c872f0 + 213a4e3 commit f836b8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/capellacollab/settings/modelsources/git/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
def ls_remote(url: str, env: cabc.Mapping[str, str]) -> list[str]:
try:
proc = subprocess.run(
["git", "ls-remote", url], capture_output=True, check=True, env=env
["git", "ls-remote", url],
capture_output=True,
check=True,
env=os.environ | env,
)
except subprocess.CalledProcessError as e:
log.debug(
Expand Down

0 comments on commit f836b8f

Please sign in to comment.