From fb1747624c08c74366d34f054d44abd7f0191065 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 20 Oct 2014 19:50:22 +0100 Subject: [PATCH] Force the origin remote url to be the original one and not that of a mirror --- src/Composer/Downloader/GitDownloader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 503d792a1..a0e2a9adf 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -60,6 +60,10 @@ class GitDownloader extends VcsDownloader } $package->setSourceReference($newRef); } + + if ($url !== $package->getSourceUrl()) { + $this->process->execute(sprintf('git remote set-url origin %s', $package->getSourceUrl()), $output, $path); + } } /**