1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-08 16:17:37 +00:00

Merge pull request #3691 from bragento/master

add check for remote Repository in GitDriver::supports
This commit is contained in:
Jordi Boggiano 2015-01-30 20:24:26 +00:00
commit be23cbfa6e

View file

@ -241,7 +241,11 @@ class GitDriver extends VcsDriver
return false;
}
// TODO try to connect to the server
$process = new ProcessExecutor($io);
if($process->execute('git ls-remote --heads ' . ProcessExecutor::escape($url)) === 0) {
return true;
}
return false;
}
}