Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jupyterlab_git/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ async def status(self, path: str) -> dict:
Execute git status command & return the result.
"""
cmd = ["git", "status", "--porcelain", "-b", "-u", "-z"]
code, status, my_error = await self.__execute(cmd, cwd=path)
code, status, my_error = await self.__execute(cmd, cwd=path, env=os.environ.copy())

if code != 0:
return {
Expand Down Expand Up @@ -839,7 +839,7 @@ async def branch_heads(self, path):
"refs/heads/",
]

code, output, error = await self.__execute(cmd, cwd=path)
code, output, error = await self.__execute(cmd, cwd=path, env=os.environ.copy())
if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

Expand Down Expand Up @@ -905,7 +905,7 @@ async def branch_remotes(self, path):
"refs/remotes/",
]

code, output, error = await self.__execute(cmd, cwd=path)
code, output, error = await self.__execute(cmd, cwd=path, env=os.environ.copy())
if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

Expand Down
Loading