Unverified Commit 838ad837 authored by Ahmed Ashour's avatar Ahmed Ashour Committed by GitHub

Explicitly show "Currently not on an official channel." (#84992)

parent cb4fba20
...@@ -113,6 +113,11 @@ class ChannelCommand extends FlutterCommand { ...@@ -113,6 +113,11 @@ class ChannelCommand extends FlutterCommand {
} }
} }
} }
if (currentChannel == 'unknown') {
globals.printStatus('');
globals.printStatus('Currently not on an official channel.');
}
} }
Future<void> _switchChannel(String branchName) async { Future<void> _switchChannel(String branchName) async {
......
...@@ -159,7 +159,7 @@ void main() { ...@@ -159,7 +159,7 @@ void main() {
.where((String line) => line?.isNotEmpty == true) .where((String line) => line?.isNotEmpty == true)
.skip(1); // remove `Flutter channels:` line .skip(1); // remove `Flutter channels:` line
expect(rows, <String>['dev', 'beta', 'stable']); expect(rows, <String>['dev', 'beta', 'stable', 'Currently not on an official channel.']);
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
ProcessManager: () => fakeProcessManager, ProcessManager: () => fakeProcessManager,
FileSystem: () => MemoryFileSystem.test(), FileSystem: () => MemoryFileSystem.test(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment