@@ -491,7 +491,7 @@ async def status(self, path: str) -> dict:
491
491
Execute git status command & return the result.
492
492
"""
493
493
cmd = ["git" , "status" , "--porcelain" , "-b" , "-u" , "-z" ]
494
- code , status , my_error = await self .__execute (cmd , cwd = path )
494
+ code , status , my_error = await self .__execute (cmd , cwd = path , env = os . environ . copy () )
495
495
496
496
if code != 0 :
497
497
return {
@@ -839,7 +839,7 @@ async def branch_heads(self, path):
839
839
"refs/heads/" ,
840
840
]
841
841
842
- code , output , error = await self .__execute (cmd , cwd = path )
842
+ code , output , error = await self .__execute (cmd , cwd = path , env = os . environ . copy () )
843
843
if code != 0 :
844
844
return {"code" : code , "command" : " " .join (cmd ), "message" : error }
845
845
@@ -905,7 +905,7 @@ async def branch_remotes(self, path):
905
905
"refs/remotes/" ,
906
906
]
907
907
908
- code , output , error = await self .__execute (cmd , cwd = path )
908
+ code , output , error = await self .__execute (cmd , cwd = path , env = os . environ . copy () )
909
909
if code != 0 :
910
910
return {"code" : code , "command" : " " .join (cmd ), "message" : error }
911
911
0 commit comments