From ec9b905b1057792d29cd81f5b329a8ef1ce81d70 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 24 Dec 2021 08:34:09 -0800 Subject: [PATCH] Allow opting out of installation of Git hooks. (flutter/engine#30489) --- DEPS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DEPS b/DEPS index 97bd44ac1b..6af7d1561a 100644 --- a/DEPS +++ b/DEPS @@ -83,6 +83,9 @@ vars = { # So by default we will not download prebuilts. This varible is needed in # the flutter engine to ensure that Dart gn has access to it as well. "checkout_llvm": False, + + # Setup Git hooks by default. + "setup_githooks": True, } gclient_gn_args_file = 'src/third_party/dart/build/config/gclient_args.gni' @@ -718,6 +721,7 @@ hooks = [ { 'name': 'Setup githooks', 'pattern': '.', + 'condition': 'setup_githooks', 'action': [ 'python3', 'src/flutter/tools/githooks/setup.py',