1
0
Fork 0

Output error if a local filesystem VCS repo points to a non-existing dir

pull/963/merge
Jordi Boggiano 2012-08-14 11:19:15 +02:00
parent 398d97a629
commit 518984b70d
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ class GitDriver extends VcsDriver
// local filesystem
if (static::isLocalUrl($url)) {
if (!is_dir($url)) {
throw new \RuntimeException('Directory does not exist: '.$url);
}
$process = new ProcessExecutor();
$url = str_replace('file://', '', $url);
// check whether there is a git repo in that path