Skip to content

Commit a0eef20

Browse files
author
Alexandre Salomé
committed
Merge pull request #97 from MidnightDesign/patch-1
Windows: Change $_SERVER['PATH'] to getenv('path')
2 parents 2e3cd22 + ddff7a8 commit a0eef20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gitonomy/Git/Repository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function __construct($dir, $options = array())
118118
'working_dir' => null,
119119
'debug' => true,
120120
'logger' => null,
121-
'environment_variables' => $is_windows ? array('PATH' => $_SERVER['PATH']) : array(),
121+
'environment_variables' => $is_windows ? array('PATH' => getenv('path')) : array(),
122122
'command' => 'git',
123123
'process_timeout' => 3600,
124124
), $options);

0 commit comments

Comments
 (0)