Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/flutter_tools/lib/src/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,19 @@ class GitTagVersion {
}
}

// Check if running on a Shorebird release branch.
final String shorebirdFlutterReleases = _runGit(
'git for-each-ref --contains $gitRef --format %(refname:short) refs/remotes/origin/flutter_release/*',
processUtils,
workingDirectory,
).trim();
final String? shorebirdFlutterVersion = LineSplitter.split(
shorebirdFlutterReleases,
).map((e) => e.replaceFirst('origin/flutter_release/', '')).toList().firstOrNull;
if (shorebirdFlutterVersion != null) {
return parse(shorebirdFlutterVersion);
}

// If we're not currently on a tag, use git describe to find the most
// recent tag and number of commits past.
return parse(
Expand Down
Loading