1
0
Fork 0

Fix handling of svn trunk in version guesser, fixes #8765

pull/8780/head
Jordi Boggiano 2020-04-13 12:48:43 +02:00
parent 876136022b
commit be1ddcf293
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 2 deletions

View File

@ -321,7 +321,11 @@ class VersionGuesser
}
$prettyVersion = trim($matches[1]);
if ($prettyVersion === 'trunk') {
$version = 'dev-trunk';
} else {
$version = $this->versionParser->normalize($prettyVersion);
}
return array('version' => $version, 'commit' => '', 'pretty_version' => $prettyVersion);
}