aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadaf Ebrahimi <sadafebrahimi@google.com>2024-04-16 17:30:21 +0000
committerSadaf Ebrahimi <sadafebrahimi@google.com>2024-04-16 17:30:21 +0000
commit3bcbc4ecbaa7d6c4cfc4c02621fbe9d54bfaf180 (patch)
tree602aebd30eab5caccc424e071d61869e29614e1f
parent37f55303be7fd75eeeccbbf7e82a79cf69a37013 (diff)
downloadexternal_updater-3bcbc4ecbaa7d6c4cfc4c02621fbe9d54bfaf180.tar.gz
Skip banned words
External projects have no risk of exposing unreleased features. Bug: 332300636 Test: updater.sh update external/toybox Change-Id: I9fa95aa82e0c1219097539d223dd40d06f7ff645
-rw-r--r--git_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_utils.py b/git_utils.py
index cddd78f..584ba11 100644
--- a/git_utils.py
+++ b/git_utils.py
@@ -221,7 +221,7 @@ def detach_to_android_head(proj_path: Path) -> None:
def push(proj_path: Path, remote_name: str, has_errors: bool) -> None:
"""Pushes change to remote."""
- cmd = ['git', 'push', remote_name, 'HEAD:refs/for/main']
+ cmd = ['git', 'push', remote_name, 'HEAD:refs/for/main', '-o', 'banned-words~skip']
if revs := reviewers.find_reviewers(str(proj_path)):
cmd.extend(['-o', revs])
if tag := hashtags.find_hashtag(proj_path):