Skip to content

Commit

Permalink
Fixes paths with spaces in them
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Apr 29, 2021
1 parent c84aac4 commit 4f44922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Process/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function prepareComposerArguments($parts)
$phpBin = (new PhpExecutableFinder)->find();

return implode(' ', array_merge([
$phpBin,
'"'.$phpBin.'"',
'vendor/composer/composer/bin/composer'
], $parts));
}
Expand Down
4 changes: 3 additions & 1 deletion src/Process/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ protected function prepareGitArguments($parts)
{
$gitBin = Config::get('system.git_binary', 'git');

return implode(' ', array_merge([$gitBin], $parts));
return implode(' ', array_merge([
'"'.$gitBin.'"'
], $parts));
}
}

0 comments on commit 4f44922

Please sign in to comment.