فهرست منبع

Also update source type and reference when changing URLs

Matthias Pigulla 9 سال پیش
والد
کامیت
2db52ebeba
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/Composer/Installer.php

+ 2 - 0
src/Composer/Installer.php

@@ -1023,7 +1023,9 @@ class Installer
                 $newPackage = $pool->literalToPackage($matches[0]);
 
                 // update the dist and source URLs
+                $package->setSourceType($newPackage->getSourceType());
                 $package->setSourceUrl($newPackage->getSourceUrl());
+                $package->setSourceReference($newPackage->getSourceReference());
                 // only update dist url for github/bitbucket dists as they use a combination of dist url + dist reference to install
                 // but for other urls this is ambiguous and could result in bad outcomes
                 if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com)/}', $newPackage->getDistUrl())) {