Merge pull request #3424 from kaktus42/master
return false if local file path does not exist in GitDriver and HgDriverpull/3527/head
commit
5133c3fe9a
|
@ -227,7 +227,7 @@ class GitDriver extends VcsDriver
|
|||
if (Filesystem::isLocalPath($url)) {
|
||||
$url = Filesystem::getPlatformPath($url);
|
||||
if (!is_dir($url)) {
|
||||
throw new \RuntimeException('Directory does not exist: '.$url);
|
||||
return false;
|
||||
}
|
||||
|
||||
$process = new ProcessExecutor($io);
|
||||
|
|
|
@ -200,7 +200,7 @@ class HgDriver extends VcsDriver
|
|||
if (Filesystem::isLocalPath($url)) {
|
||||
$url = Filesystem::getPlatformPath($url);
|
||||
if (!is_dir($url)) {
|
||||
throw new \RuntimeException('Directory does not exist: '.$url);
|
||||
return false;
|
||||
}
|
||||
|
||||
$process = new ProcessExecutor();
|
||||
|
|
Loading…
Reference in New Issue