Merge pull request #3691 from bragento/master
add check for remote Repository in GitDriver::supportspull/3697/head
commit
be23cbfa6e
|
@ -241,7 +241,11 @@ class GitDriver extends VcsDriver
|
||||||
return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue