Philipp Hörist pushed to branch master at gajim / gajim


Commits:
40abcc57 by lovetox at 2022-03-27T18:38:14+02:00
ci: Update git update hook

- - - - -


1 changed file:

- .githooks/update


Changes:

=====================================
.githooks/update
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import annotations
 
@@ -33,7 +33,12 @@ def get_commit_shas(start_ref: str, end_ref: str) -> 
List[str]:
 
 
 def enforce_message_rules(subject: str) -> None:
-    tag, subject = subject.split(': ', maxsplit=1)
+    try:
+        tag, subject = subject.split(': ', maxsplit=1)
+    except ValueError:
+        print('Unknown commit message tag:', subject)
+        sys.exit(1)
+
     if tag not in ALLOWED_TAGS:
         print('Unknown commit message tag:', tag)
         sys.exit(1)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/40abcc5716d238235cf46d90ddffa9bbf68b0139

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/40abcc5716d238235cf46d90ddffa9bbf68b0139
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to