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:
@@ -10,9 +10,6 @@ const String _reset = '\x1B[0m';
|
|||||||
/// Prints a reminder to stdout to run `gclient sync -D`. Uses colors when
|
/// Prints a reminder to stdout to run `gclient sync -D`. Uses colors when
|
||||||
/// stdout supports ANSI escape codes.
|
/// stdout supports ANSI escape codes.
|
||||||
void printGclientSyncReminder(String command) {
|
void printGclientSyncReminder(String command) {
|
||||||
if (command == 'pre-rebase') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final String prefix = io.stdout.supportsAnsiEscapes ? _redBoldUnderline : '';
|
final String prefix = io.stdout.supportsAnsiEscapes ? _redBoldUnderline : '';
|
||||||
final String postfix = io.stdout.supportsAnsiEscapes ? _reset : '';
|
final String postfix = io.stdout.supportsAnsiEscapes ? _reset : '';
|
||||||
io.stderr.writeln('$command: The engine source tree has been updated.');
|
io.stderr.writeln('$command: The engine source tree has been updated.');
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
import 'package:args/command_runner.dart';
|
import 'package:args/command_runner.dart';
|
||||||
|
|
||||||
import 'messages.dart';
|
|
||||||
|
|
||||||
/// The command that implements the pre-rebase githook
|
/// The command that implements the pre-rebase githook
|
||||||
class PreRebaseCommand extends Command<bool> {
|
class PreRebaseCommand extends Command<bool> {
|
||||||
@override
|
@override
|
||||||
@@ -16,7 +14,6 @@ class PreRebaseCommand extends Command<bool> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<bool> run() async {
|
Future<bool> run() async {
|
||||||
printGclientSyncReminder(name);
|
|
||||||
// Returning false here will block the rebase.
|
// Returning false here will block the rebase.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user