@ -269,8 +269,6 @@ class GitDownloader extends VcsDownloader
*/
*/
protected function runCommand($commandCallable, $url, $path = null)
protected function runCommand($commandCallable, $url, $path = null)
{
{
$handler = array($this, 'outputHandler');
if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $url)) {
if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $url)) {
throw new \InvalidArgumentException('The source URL '.$url.' is invalid, ssh URLs should have a port number after ":".'."\n".'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
throw new \InvalidArgumentException('The source URL '.$url.' is invalid, ssh URLs should have a port number after ":".'."\n".'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
}
}
@ -284,7 +282,7 @@ class GitDownloader extends VcsDownloader
$messages = array();
$messages = array();
foreach ($protocols as $protocol) {
foreach ($protocols as $protocol) {
$url = $protocol . $match[1];
$url = $protocol . $match[1];
if (0 === $this->process->execute(call_user_func($commandCallable, $url), $handler)) {
if (0 === $this->process->execute(call_user_func($commandCallable, $url), $ignoredOutput)) {