mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove "gclient sync" warning call during pre-rebase (flutter/engine#52342)
Remove `pre-rebase` check from `gclient sync` warning, and instead remove the warning call from `pre_rebase_command` Follow-up to https://github.com/flutter/engine/pull/52133#discussion_r1575447161
This commit is contained in:
parent
7f8d6a3cf3
commit
59cd6af303
@ -10,9 +10,6 @@ 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.');
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
|
||||
import 'package:args/command_runner.dart';
|
||||
|
||||
import 'messages.dart';
|
||||
|
||||
/// The command that implements the pre-rebase githook
|
||||
class PreRebaseCommand extends Command<bool> {
|
||||
@override
|
||||
@ -16,7 +14,6 @@ class PreRebaseCommand extends Command<bool> {
|
||||
|
||||
@override
|
||||
Future<bool> run() async {
|
||||
printGclientSyncReminder(name);
|
||||
// Returning false here will block the rebase.
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user