1
0
Fork 0

Fixed detection of hg version when localized, fixes #9753

pull/9803/head
Jordi Boggiano 2021-04-01 10:09:49 +02:00
parent 7b8a15d648
commit dc84dbbbf7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 3 additions and 2 deletions

View File

@ -1,13 +1,14 @@
### [2.0.12] 2021-04-01 ### [2.0.12] 2021-04-01
* Fixed support for new GitHub OAuth token format (#9757) * Fixed support for new GitHub OAuth token format (#9757)
* Fixed support for Vagrant/VirtualBox filesystem slowness by adding short sleeps in some places (#9627) * Fixed support for Vagrant/VirtualBox filesystem slowness by adding short sleeps in some places (#9627)
* Fixed unclear error reporting when a package is in the lock file but not in the remote repositories (#9750) * Fixed unclear error reporting when a package is in the lock file but not in the remote repositories (#9750)
* Fixed processes silently ignoring the CWD when it does not exist * Fixed processes silently ignoring the CWD when it does not exist
* Fixed new Windows bin handling to avoid proxying phar files (#9742) * Fixed new Windows bin handling to avoid proxying phar files (#9742)
* Fixed issue extracting archives into paths that already exist, fixing problems with some custom installers (composer/installers#479) * Fixed issue extracting archives into paths that already exist, fixing problems with some custom installers (composer/installers#479)
* Fixed support for branch names starting with master/trunk/default (#9739) * Fixed support for branch names starting with master/trunk/default (#9739)
* Fixed self-update to preserve phar file permissions on Windows (#9733) * Fixed self-update to preserve phar file permissions on Windows (#9733)
* Fixed detection of hg version when localized (#9753)
* Fixed git execution failures to also include the stdout output (#9720) * Fixed git execution failures to also include the stdout output (#9720)
### [2.0.11] 2021-02-24 ### [2.0.11] 2021-02-24

View File

@ -92,7 +92,7 @@ class Hg
{ {
if (false === self::$version) { if (false === self::$version) {
self::$version = null; self::$version = null;
if (0 === $process->execute('hg --version', $output) && preg_match('/version (\d+(?:\.\d+)+)/m', $output, $matches)) { if (0 === $process->execute('hg --version', $output) && preg_match('/^.+? (\d+(?:\.\d+)+)\)?\r?\n/', $output, $matches)) {
self::$version = $matches[1]; self::$version = $matches[1];
} }
} }