1
0
Fork 0

Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET"

Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"

This reverts commit e7eecc6901.
This reverts commit faa7c5eea2.
pull/8180/head
Jordi Boggiano 2019-06-07 17:24:34 +02:00
parent e7eecc6901
commit b4e5db1c70
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 0 additions and 8 deletions

View File

@ -917,10 +917,6 @@ if you use Composer as super user at all times like in docker containers.
If set, the value is used as php's memory_limit.
### COMPOSER_SELF_UPDATE_TARGET
If set, makes the self-update command write the new Composer phar file into that path instead of overwriting itself. Useful for updating Composer on read-only filesystem.
### COMPOSER_MIRROR_PATH_REPOS
If set to 1, this env changes the default path repository strategy to `mirror` instead

View File

@ -351,10 +351,6 @@ TAGSPUBKEY
@copy($localFilename, $backupTarget);
}
if ($targetFilename = getenv('COMPOSER_SELF_UPDATE_TARGET')) {
$localFilename = realpath($targetFilename) ?: $targetFilename;
}
rename($newFilename, $localFilename);
return null;