post-receive: use commiter name and email address
authorJulien Danjou <julien@danjou.info>
Mon, 22 Nov 2010 09:32:06 +0000 (10:32 +0100)
committerJulien Danjou <julien@danjou.info>
Mon, 22 Nov 2010 09:32:06 +0000 (10:32 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
etc/ChangeLog
etc/post-receive

index 258e9ef..5527c03 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-22  Julien Danjou  <julien@danjou.info>
+
+       * post-receive: Use commiter name and email address.
+
 2010-09-24  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * post-receive: Use the emailprefix again.
index 421db3e..aacd6ef 100755 (executable)
@@ -3,8 +3,8 @@
 # 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)
+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: