[flutter_tools] flutter version reports picks up release versions (#63019)

This commit is contained in:
Chris Yang
2020-08-05 15:20:27 -07:00
committed by GitHub
parent ca660aad09
commit c9cd825fca
5 changed files with 17 additions and 17 deletions

View File

@@ -783,7 +783,7 @@ class GitTagVersion {
// recent tag and number of commits past.
return parse(
_runGit(
'git describe --match *.*.*-*.*.pre --first-parent --long --tags',
'git describe --match *.*.* --first-parent --long --tags',
processUtils,
workingDirectory,
)
@@ -858,7 +858,7 @@ class GitTagVersion {
if (devPatch != null && devVersion != null) {
return '$x.$y.$z-${devVersion + 1}.0.pre.$commits';
}
return '$x.$y.${z + 1}.pre.$commits';
return '$x.$y.${z + 1}-0.0.pre.$commits';
}
}