Skip to content

Commit b9a4472

Browse files
committed
Fixed typos in Admin class
1 parent de59c78 commit b9a4472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Gitonomy/Git/Admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function init($path, $bare = true, array $options = array())
3838
$command = isset($options['command']) ? $options['command'] : 'git';
3939

4040
// command-line
41-
$builder = ProcessBuilder::create(array('git', 'init', '-q'));
41+
$builder = ProcessBuilder::create(array($command, 'init', '-q'));
4242
if ($bare) {
4343
$builder->add('--bare');
4444
}
@@ -112,11 +112,11 @@ private static function cloneRepository($path, $url, array $args = array(), arra
112112
$builder->add($path);
113113

114114
$builder->inheritEnvironmentVariables(false);
115+
$process = $builder->getProcess();
115116
if (isset($options['environment_variables'])) {
116-
$builder->setEnv($options['environment_variables']);
117+
$process->setEnv($options['environment_variables']);
117118
}
118119

119-
$process = $builder->getProcess();
120120
$process->run();
121121

122122
if (!$process->isSuccessFul()) {

0 commit comments

Comments
 (0)