1
0
Fork 0

Merge pull request #3691 from bragento/master

add check for remote Repository in GitDriver::supports
pull/3697/head
Jordi Boggiano 2015-01-30 20:24:26 +00:00
commit be23cbfa6e
1 changed files with 5 additions and 1 deletions

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;
}
}