public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Whitespace at the start of first line of commit
@ 2020-01-14 11:01 Jakub Jelinek
  2020-01-14 16:25 ` Joseph Myers
  0 siblings, 1 reply; 6+ messages in thread
From: Jakub Jelinek @ 2020-01-14 11:01 UTC (permalink / raw)
  To: gcc; +Cc: Jason Merrill, Joseph S. Myers, Richard Earnshaw (lists)

Hi!

I've noticed that a couple of Jason's commits show up in gcc-cvs
in mutt as:
[gcc r10-5937] ?PR c++/92582 - ICE with member template as requirement.
The ? in there comes from a tab character, the full subject is like
Subject: =?utf-8?q?=5Bgcc_r10-5937=5D_=09PR_c++/92582_-_ICE_with_member_template_a?=
 =?utf-8?q?s_requirement=2E?=

One possibility to deal with this is:
--- hooks/updates/__init__.py	2020-01-12 22:30:37.143193572 +0100
+++ hooks/updates/__init__.py	2020-01-14 11:20:05.746749843 +0100
@@ -315,7 +315,7 @@ class AbstractUpdate(object):
         subject = '[%(repo)s%(branch)s] %(subject)s' % {
             'repo': self.email_info.project_name,
             'branch': branch,
-            'subject': commit.subject[:SUBJECT_MAX_SUBJECT_CHARS],
+            'subject': commit.subject[:SUBJECT_MAX_SUBJECT_CHARS].strip (),
             }
 
         # Generate the body of the email in two pieces:
(untested), another, suggested by Richard on IRC, would be to reject
commits where the first line starts with whitespace.

So, what do we want to do here?

	Jakub

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-01-17 16:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 11:01 Whitespace at the start of first line of commit Jakub Jelinek
2020-01-14 16:25 ` Joseph Myers
2020-01-15 22:46   ` Joseph Myers
2020-01-17 16:50     ` Joel Brobecker
2020-01-17 16:56       ` Joel Brobecker
2020-01-17 17:41       ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).