1
0
Fork 0

Force the origin remote url to be the original one and not that of a mirror

pull/3205/merge
Jordi Boggiano 2014-10-20 19:50:22 +01:00
parent 373c688f8c
commit fb1747624c
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}
/**