cut out "file://" from VCS download() method
this issue was happening due to realpath() function that cannot work with "file://" path. For local repositories it is valid url but not valid for realpath()pull/5688/merge
parent
1cf4ecd648
commit
8c1f889806
|
@ -67,6 +67,12 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
|||
while ($url = array_shift($urls)) {
|
||||
try {
|
||||
if (Filesystem::isLocalPath($url)) {
|
||||
# realpath() below will not understand
|
||||
# url that starts with "file://"
|
||||
$needle = 'file://';
|
||||
if (0 === strpos($url, $needle)) {
|
||||
$url = substr($url, strlen($needle));
|
||||
}
|
||||
$url = realpath($url);
|
||||
}
|
||||
$this->doDownload($package, $path, $url);
|
||||
|
|
Loading…
Reference in New Issue