Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-06-27 01:56:47 +0300
committerlovetox <philipp@hoerist.com>2022-06-27 01:57:30 +0300
commit30e6108b8b0617153497638a98984355e1cd8dc9 (patch)
tree108f69344a53f3cd0cd5f8bd53ee64089684eaf7 /.githooks
parent3a32a87bedc4645eae635842070e49b07b898e13 (diff)
chore: Update git update hook
Diffstat (limited to '.githooks')
-rwxr-xr-x.githooks/update5
1 files changed, 4 insertions, 1 deletions
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)