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 commitd2d606ced2
, reversing changes made to4a8dbcd145
.
This commit is contained in:
parent
2cb9630320
commit
079e501ac8
6 changed files with 4 additions and 72 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue