From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73994 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.gnus.general Subject: Re: [ding-cvslog-owner@lists.math.uh.edu] Stalled post to ding-cvslog Date: Wed, 10 Nov 2010 08:46:32 +0100 Message-ID: <87bp5xboyv.fsf@turtle.gmx.de> References: <87wrom936j.fsf@turtle.gmx.de> <87aali1g6l.fsf@keller.adm.naquadah.org> <87lj528ff2.fsf@turtle.gmx.de> <878w12qi64.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289375305 29660 80.91.229.12 (10 Nov 2010 07:48:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 07:48:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22362@lists.math.uh.edu Wed Nov 10 08:48:21 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PG5Po-00010y-HH for ding-account@gmane.org; Wed, 10 Nov 2010 08:48:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PG5Op-0002Ul-Gw; Wed, 10 Nov 2010 01:47:19 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PG5On-0002UV-JW for ding@lists.math.uh.edu; Wed, 10 Nov 2010 01:47:17 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PG5Oc-0003S3-9q for ding@lists.math.uh.edu; Wed, 10 Nov 2010 01:47:17 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by quimby.gnus.org with smtp (Exim 3.36 #1 (Debian)) id 1PG5Ob-0005Eq-00 for ; Wed, 10 Nov 2010 08:47:05 +0100 Original-Received: (qmail invoked by alias); 10 Nov 2010 07:46:34 -0000 Original-Received: from p54862513.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.37.19] by mail.gmx.net (mp072) with SMTP; 10 Nov 2010 08:46:34 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/7vXBUAUv7Ufmi7WKhbyTvKpptrFjMopIPgQsiWT oA66rsjR7I/kMz Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 27F8F3F46D; Wed, 10 Nov 2010 08:46:33 +0100 (CET) Mail-Followup-To: ding@gnus.org In-Reply-To: <878w12qi64.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 09 Nov 2010 15:52:03 -0600") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73994 Archived-At: On 2010-11-09 22:52 +0100, Ted Zlatanov wrote: > On Tue, 09 Nov 2010 20:28:49 +0100 Sven Joachim wrote: > > SJ> On 2010-11-09 20:08 +0100, Lars Magne Ingebrigtsen wrote: >>> Julien Danjou writes: >>> >>>> There's one: >>>> >>>> % git show --pretty=full 00cd64463c5cf16d6aa0611c7957cfe94e6d5b0d | head -3 >>>> commit 00cd64463c5cf16d6aa0611c7957cfe94e6d5b0d >>>> Author: Sven Joachim >>>> Commit: Katsumi Yamaoka >>> >>> Right. But the Commit line wasn't even in the mail, which makes it >>> rather difficult for the mailing list software to use that. :-) > > SJ> Correct, that's why I proposed to change the post-receive script (which > SJ> writes and sends the mail) so that it uses the "Commit:" address for > SJ> constructing the "From:" field in the mail. Sorry if that was unclear. > > The script is in the Git repo under etc/post-receive. Can you suggest a patch? The following should work (untested, though): --8<---------------cut here---------------start------------->8--- diff --git a/etc/post-receive b/etc/post-receive index 421db3e..c77d6df 100755 --- a/etc/post-receive +++ b/etc/post-receive @@ -2,9 +2,9 @@ # modified: 2010-09-01 and on by tzz@lifelogs.com -# Use the email address of the author of the last commit. -export USER_EMAIL=$(git log -1 --format=format:%ae HEAD) -export USER_NAME=$(git log -1 --format=format:%an HEAD) +# Use the email address of the committer of the last commit. +export USER_EMAIL=$(git log -1 --format=format:%ce HEAD) +export USER_NAME=$(git log -1 --format=format:%cn HEAD) # the remainder is the standard git-core post-receive-email with some changes: --8<---------------cut here---------------end--------------->8--- Cheers, Sven