-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unset the HOME env before calling git binary
If we do no unset the env, git will use a potential .gitconfig which can alter results
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,8 @@ protected function getProcess($command, $args = array()) | |
|
||
$builder = new ProcessBuilder(array_merge($base, $args)); | ||
|
||
$builder->inheritEnvironmentVariables(false); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
alexandresalome
Member
|
||
|
||
return $builder->getProcess(); | ||
} | ||
} |
You removed all environment variables including PATH
(-bash: git: command not found)
. Please remove only needed variables.