From 1bf166467251436c5b729844247ef3de099e43dd Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 2 Dec 2020 16:35:57 -0500 Subject: Fix logic on git-patch-id hash generation We're no longer returning here, so we need to flip our logic around. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index ae01555..76e97f6 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1148,7 +1148,7 @@ class LoreMessage: # Git doesn't think there's a patch there return fline = out.split('\n')[0] - if len(fline) < 40: + if len(fline) >= 40: self.git_patch_id = fline[:40] msg_out = mkstemp() -- cgit v1.2.3