Skip to content

Commit

Permalink
Metadata push (#3543)
Browse files Browse the repository at this point in the history
Bonus:
Don't install commit-msg hook in external repo

b/150775273

---------

Co-authored-by: Kaido Kert <[email protected]>
  • Loading branch information
oxve and kaidokert authored Jun 19, 2024
1 parent 1b00e60 commit 696342c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,6 @@ repos:
language: python
additional_dependencies:
- "protobuf"
stages: [push]
always_run: true
pass_filenames: false
4 changes: 3 additions & 1 deletion download_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ def DownloadGerritCommitMsgHook(force=False):
logging.basicConfig(
level=logging.INFO, format=logging_format, datefmt='%H:%M:%S')

DownloadGerritCommitMsgHook()
is_internal = os.path.exists('internal')
if is_internal:
DownloadGerritCommitMsgHook()

0 comments on commit 696342c

Please sign in to comment.