Allow opting out of installation of Git hooks. (flutter/engine#30489)

This commit is contained in:
Chinmay Garde
2021-12-24 08:34:09 -08:00
committed by GitHub
parent 0f0456b2d0
commit ec9b905b10

4
DEPS
View File

@@ -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',