aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-04 12:25:45 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-04 12:25:45 -0500
commit02d205ed5a9eeb9515a00bf860134a3522e59907 (patch)
treeba5ba4f5389dd268f43fcd54ef81a718ead86a1f
parent3e231ea74ade46fbc5ebdee9d21bf25b8dd014d4 (diff)
downloadb4-02d205ed5a9eeb9515a00bf860134a3522e59907.tar.gz
Limit slug length by 100 characters
Some subjects are still too long and hit FS file length limits. Since they are supposed to be human-friendly anyway, limit them by 100 characters. 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 76e97f6..695fe68 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -481,7 +481,7 @@ class LoreSeries:
if self.revision != 1:
slug = 'v%s_%s' % (self.revision, slug)
- return slug
+ return slug[:100]
def save_am_mbox(self, mbx, noaddtrailers=False, covertrailers=False, trailer_order=None, addmysob=False,
addlink=False, linkmask=None, cherrypick=None, copyccs=False):