1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Revert "Merge pull request #9273 from nicolas-grekas/dev-version"

This reverts commit d2d606ced2, reversing
changes made to 4a8dbcd145.
This commit is contained in:
Nicolas Grekas 2021-01-27 14:03:44 +01:00
parent 2cb9630320
commit 079e501ac8
6 changed files with 4 additions and 72 deletions

View file

@ -165,11 +165,6 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
);
$package['transport-options'] = $this->options;
// use the branch-version as the package version if available
if (!isset($package['version']) && isset($package['extra']['branch-version'])) {
$package['version'] = preg_replace('{(\.x)?(-dev)?$}', '', $package['extra']['branch-version']).'.x-dev';
}
// carry over the root package version if this path repo is in the same git repository as root package
if (!isset($package['version']) && ($rootVersion = getenv('COMPOSER_ROOT_VERSION'))) {
if (