Revert "Fix version command for certain git workflows (#52062)" (#52128)

This reverts commit 20bf43b9eb.
This commit is contained in:
Jonah Williams
2020-03-06 12:58:00 -08:00
committed by GitHub
parent a14ac4e3c8
commit e7d70fbf75
4 changed files with 3 additions and 50 deletions

View File

@@ -23,9 +23,6 @@ enum Channel {
stable,
}
/// The flutter GitHub repository.
const String _flutterGit = 'https://github.com/flutter/flutter.git';
/// Retrieve a human-readable name for a given [channel].
///
/// Requires [FlutterVersion.officialChannels] to be correctly ordered.
@@ -236,7 +233,7 @@ class FlutterVersion {
'remote',
'add',
_versionCheckRemote,
_flutterGit,
'https://github.com/flutter/flutter.git',
]);
await _run(<String>['git', 'fetch', _versionCheckRemote, branch]);
return _latestGitCommitDate(
@@ -705,7 +702,6 @@ class GitTagVersion {
final String hash;
static GitTagVersion determine(ProcessUtils processUtils, [String workingDirectory]) {
_runGit('git fetch $_flutterGit --tags', processUtils, workingDirectory);
return parse(_runGit('git describe --match v*.*.* --first-parent --long --tags', processUtils, workingDirectory));
}