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:
commit
be23cbfa6e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue