1
0
Fork 0

Merge pull request #3424 from kaktus42/master

return false if local file path does not exist in GitDriver and HgDriver
pull/3527/head
Jordi Boggiano 2014-12-09 14:12:13 +00:00
commit 5133c3fe9a
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ class GitDriver extends VcsDriver
if (Filesystem::isLocalPath($url)) { if (Filesystem::isLocalPath($url)) {
$url = Filesystem::getPlatformPath($url); $url = Filesystem::getPlatformPath($url);
if (!is_dir($url)) { if (!is_dir($url)) {
throw new \RuntimeException('Directory does not exist: '.$url); return false;
} }
$process = new ProcessExecutor($io); $process = new ProcessExecutor($io);

View File

@ -200,7 +200,7 @@ class HgDriver extends VcsDriver
if (Filesystem::isLocalPath($url)) { if (Filesystem::isLocalPath($url)) {
$url = Filesystem::getPlatformPath($url); $url = Filesystem::getPlatformPath($url);
if (!is_dir($url)) { if (!is_dir($url)) {
throw new \RuntimeException('Directory does not exist: '.$url); return false;
} }
$process = new ProcessExecutor(); $process = new ProcessExecutor();