This reverts commit 20bf43b9eb.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user