We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9273611 + ad0bef3 commit 7a46107Copy full SHA for 7a46107
src/Gitonomy/Git/Repository.php
@@ -115,11 +115,12 @@ class Repository
115
*/
116
public function __construct($dir, $options = array())
117
{
118
+ $is_windows = defined( 'PHP_WINDOWS_VERSION_BUILD' );
119
$options = array_merge(array(
120
'working_dir' => null,
121
'debug' => true,
122
'logger' => null,
- 'environment_variables' => array(),
123
+ 'environment_variables' => $is_windows ? array( 'PATH' => $_SERVER['PATH'] ) : array(),
124
'command' => 'git',
125
'process_timeout' => 3600
126
), $options);
0 commit comments