Code

post-receive-email: remove spurious commas in email subject
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Wed, 11 Aug 2010 08:14:13 +0000 (10:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Aug 2010 18:23:25 +0000 (11:23 -0700)
The previous form produced subjects like

  [SCM] project.git branch, foo, updated. ...

The new one will produce the lighter

  [SCM] project.git branch foo updated. ...

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/post-receive-email

index 30ae63d74da065a31cced0b161708680f39c04c0..09c524105cfa5fca3a5a860bbbed35f5eff84f79 100755 (executable)
@@ -203,7 +203,7 @@ generate_email_header()
        # Generate header
        cat <<-EOF
        To: $recipients
-       Subject: ${emailprefix}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe
+       Subject: ${emailprefix}$projectdesc $refname_type $short_refname ${change_type}d. $describe
        X-Git-Refname: $refname
        X-Git-Reftype: $refname_type
        X-Git-Oldrev: $oldrev