From 90983e595df573ee455dbe9904ef37325052d94c Mon Sep 17 00:00:00 2001 From: ElectronicIV Date: Thu, 12 Jun 2025 14:47:50 +0200 Subject: [PATCH] Add support fot lazygit "fixup! ..." commits --- scripts/check_commit_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_commit_message.py b/scripts/check_commit_message.py index 41c0fc66..142ad4af 100644 --- a/scripts/check_commit_message.py +++ b/scripts/check_commit_message.py @@ -8,7 +8,7 @@ def has_correct_message(msg: str) -> bool: print(f"Commit message:\n{msg}") title = msg.splitlines()[0] - if msg == "squash\n": + if msg == "squash\n" or msg.startswith("fixup! "): return True verb, *words = title.split()