aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-02 16:35:57 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-02 16:35:57 -0500
commit1bf166467251436c5b729844247ef3de099e43dd (patch)
tree4e1a8382c433403b961c8f92126471a11a0db7ac
parent626959e89b38fc95c54fad58baac131755cce04f (diff)
downloadb4-1bf166467251436c5b729844247ef3de099e43dd.tar.gz
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 <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
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()