[flutter_tools] flutter version reports picks up release versions (#63019)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user