mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Only print "gclient sync" warning once during rebase (flutter/engine#52133)
Skip the "pre-rebase" message since it will also be printed "post-checkout" at the end. Fixes https://github.com/flutter/flutter/issues/146781 Before this PR:  On this PR it's only printed once  Fixes https://github.com/flutter/flutter/issues/146781
This commit is contained in:
parent
8454f13b89
commit
cd1aa8d667
@ -10,6 +10,9 @@ const String _reset = '\x1B[0m';
|
||||
/// Prints a reminder to stdout to run `gclient sync -D`. Uses colors when
|
||||
/// stdout supports ANSI escape codes.
|
||||
void printGclientSyncReminder(String command) {
|
||||
if (command == 'pre-rebase') {
|
||||
return;
|
||||
}
|
||||
final String prefix = io.stdout.supportsAnsiEscapes ? _redBoldUnderline : '';
|
||||
final String postfix = io.stdout.supportsAnsiEscapes ? _reset : '';
|
||||
io.stderr.writeln('$command: The engine source tree has been updated.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user