diff --git a/src/Controller/ApiController.php b/src/Controller/ApiController.php index 797647bc4..5a8a80d4e 100644 --- a/src/Controller/ApiController.php +++ b/src/Controller/ApiController.php @@ -563,7 +563,12 @@ protected function findGitHubPackagesByRepository(string $path, string $remoteId if ($updateUrl) { foreach ($packages as $package) { + $previousUrl = $package->getRepository(); $package->setRepository($url); + if ($url !== $previousUrl) { + // ensure we do a full update of all versions to update the repo URL + $this->scheduler->scheduleUpdate($package, updateEqualRefs: true, forceDump: true); + } } }