Skip to content

Commit

Permalink
Merge pull request #65 from Rarst/windows-path
Browse files Browse the repository at this point in the history
Added PATH to default environment in Windows
  • Loading branch information
Alexandre Salomé committed Jul 13, 2014
2 parents 9273611 + ad0bef3 commit 7a46107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gitonomy/Git/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ class Repository
*/
public function __construct($dir, $options = array())
{
$is_windows = defined( 'PHP_WINDOWS_VERSION_BUILD' );
$options = array_merge(array(
'working_dir' => null,
'debug' => true,
'logger' => null,
'environment_variables' => array(),
'environment_variables' => $is_windows ? array( 'PATH' => $_SERVER['PATH'] ) : array(),
'command' => 'git',
'process_timeout' => 3600
), $options);
Expand Down

0 comments on commit 7a46107

Please sign in to comment.