Skip to content

Commit d676512

Browse files
committed
bug #90 Added PATH to default environment in Windows. Fixes #60, #64 (X-Coder)
This PR was merged into the 1.0-dev branch. Discussion ---------- Added PATH to default environment in Windows. Fixes #60, #64 Commits ------- 2a3cd5d Added PATH to default environment in Windows for Admin class too. Fixes #64
2 parents 15ebeb2 + 2a3cd5d commit d676512

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Gitonomy/Git/Admin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ public static function cloneRepository($path, $url, array $args = array(), array
147147
*/
148148
private static function getProcess($command, array $args = array(), array $options = array())
149149
{
150+
$is_windows = defined('PHP_WINDOWS_VERSION_BUILD');
150151
$options = array_merge(array(
151-
'environment_variables' => array(),
152+
'environment_variables' => $is_windows ? array( 'PATH' => getenv('PATH') ) : array(),
152153
'command' => 'git',
153154
'process_timeout' => 3600
154155
), $options);

0 commit comments

Comments
 (0)