1
0
Fork 0

Only clone if needed

pull/4790/head
Jordi Boggiano 2016-01-18 12:29:14 +00:00
parent 33c123e8c2
commit 1d08f83976
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
$this->io = $io;
$this->cache = new Cache($io, $config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->url), 'a-z0-9.$');
$this->loader = new ArrayLoader();
if ($rfs) {
if ($rfs && $this->options) {
$rfs = clone $rfs;
$rfs->setOptions($this->options);
}