From 30e6108b8b0617153497638a98984355e1cd8dc9 Mon Sep 17 00:00:00 2001 From: lovetox Date: Mon, 27 Jun 2022 00:56:47 +0200 Subject: chore: Update git update hook --- .githooks/update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.githooks') diff --git a/.githooks/update b/.githooks/update index 7a6dd3234..35f0f2ad2 100755 --- a/.githooks/update +++ b/.githooks/update @@ -68,7 +68,10 @@ def enforce_message_rules(subject: str) -> None: def main(args: Tuple[str, str, str]) -> None: ref_name, old_ref, new_ref = args - if 'refs/tags' in ref_name: + print('UPDATE', ref_name, old_ref, new_ref) + + if ref_name != 'refs/heads/master': + # We enforce only for master branch return shas = get_commit_shas(old_ref, new_ref) -- cgit v1.2.3