mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Re-use mirror code from the git driver, refs #5384
This commit is contained in:
parent
55e90093a4
commit
4998ee27b3
4 changed files with 50 additions and 37 deletions
|
@ -36,6 +36,11 @@ class GitDownloaderTest extends TestCase
|
|||
if (is_dir($this->workingDir)) {
|
||||
$this->fs->removeDirectory($this->workingDir);
|
||||
}
|
||||
|
||||
// reset the static version cache
|
||||
$refl = new \ReflectionProperty('Composer\Util\Git', 'version');
|
||||
$refl->setAccessible(true);
|
||||
$refl->setValue(null, null);
|
||||
}
|
||||
|
||||
protected function setupConfig($config = null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue