diff --git a/jupyterlab_git/git.py b/jupyterlab_git/git.py index a4ae5e9e..280bf9ec 100644 --- a/jupyterlab_git/git.py +++ b/jupyterlab_git/git.py @@ -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 { @@ -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} @@ -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}