Skip to content

Commit a3f390e

Browse files
committed
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
1 parent b20fb95 commit a3f390e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Gitonomy/Git/Repository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ protected function getProcess($command, $args = array())
439439

440440
$builder = new ProcessBuilder(array_merge($base, $args));
441441

442+
$builder->inheritEnvironmentVariables(false);
443+
442444
return $builder->getProcess();
443445
}
444446
}

0 commit comments

Comments
 (0)