diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index dca7366e2..9c1345e9d 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/src/Composer/Repository/Vcs/GitDriver.php @@ -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