|
@@ -134,7 +134,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
|
|
$msg = "Checking out ".$this->getShortHash($ref);
|
|
$msg = "Checking out ".$this->getShortHash($ref);
|
|
$command = 'git remote set-url composer %url% && git rev-parse --quiet --verify %ref% || (git fetch composer && git fetch --tags composer)';
|
|
$command = 'git remote set-url composer %url% && git rev-parse --quiet --verify %ref% || (git fetch composer && git fetch --tags composer)';
|
|
if (getenv('COMPOSER_DISABLE_NETWORK')) {
|
|
if (getenv('COMPOSER_DISABLE_NETWORK')) {
|
|
- throw new \RuntimeException('The required git reference for '.$package->getName().' is not in cache and network is disabled, aborting');
|
|
|
|
|
|
+ throw new \RuntimeException('The required git reference for '.$target->getName().' is not in cache and network is disabled, aborting');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|