1
0
Fork 0

return false if local file path does not exist in GitDriver and HgDriver

pull/3424/head
kaktus42 2014-11-16 23:34:25 +01:00
parent ffffab37a2
commit 116ccdac62
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();