[gnus git] branch master updated: =1= Small post-receive fixes.

Ted Zlatanov <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  d24fb92a0425e0ce070443bfeaa4b23144b83edf (commit)
      from  8a16d10321644083c43621cfa178f673b0ca7142 (commit)


- Log -----------------------------------------------------------------
commit d24fb92a0425e0ce070443bfeaa4b23144b83edf
Author: Ted Zlatanov <[email protected]>
Date:   Fri Feb 18 05:44:06 2011 -0600

    Small post-receive fixes.
    
    * post-receive: Fix $(( bug.  Note that the user name and address are
    incorrect if the last commit was on a branch.

diff --git a/etc/ChangeLog b/etc/ChangeLog
index f8b781d..775c3a4 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-18  Teodor Zlatanov  <[email protected]>
+
+	* post-receive: Fix $(( bug.  Note that the user name and address are
+	incorrect if the last commit was on a branch.
+
 2010-11-22  Julien Danjou  <[email protected]>
 
 	* post-receive: Use commiter name and email address.
diff --git a/etc/post-receive b/etc/post-receive
index aacd6ef..ebd230c 100755
--- a/etc/post-receive
+++ b/etc/post-receive
@@ -3,6 +3,7 @@
 # modified: 2010-09-01 and on by [email protected]
 
 # Use the email address of the author of the last commit.
+# This fails if the commit is on a branch.
 export USER_EMAIL=$(git log -1 --format=format:%ce HEAD)
 export USER_NAME=$(git log -1 --format=format:%cn HEAD)
 
@@ -183,7 +184,7 @@ generate_email()
 	# that we can build from the parameters
 	describe=$(git describe $rev 2>/dev/null)
 	if [ -z "$describe" ]; then
-		describe=$((git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print "=", scalar @p, "= ", join(" ; ", @p)') 2>/dev/null)
+		describe=$( (git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print "=", scalar @p, "= ", join(" ; ", @p)') 2>/dev/null)
 	fi
 
 	if [ -z "$describe" ]; then

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 etc/ChangeLog    |    5 +++++
 etc/post-receive |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.