mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Add sorting to flutter version command (#31064)
This commit is contained in:
parent
975d2f113c
commit
e6f33e92a9
|
@ -35,7 +35,7 @@ class VersionCommand extends FlutterCommand {
|
|||
|
||||
Future<List<String>> getTags() async {
|
||||
final RunResult runResult = await runCheckedAsync(
|
||||
<String>['git', 'tag', '-l', 'v*'],
|
||||
<String>['git', 'tag', '-l', 'v*', '--sort=-creatordate'],
|
||||
workingDirectory: Cache.flutterRoot,
|
||||
);
|
||||
return runResult.toString().split('\n');
|
||||
|
|
Loading…
Reference in a new issue