From eb147ebb142184917c727b92b3e593c1602799b3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 22 Nov 2010 10:32:06 +0100 Subject: [PATCH] post-receive: use commiter name and email address Signed-off-by: Julien Danjou --- etc/ChangeLog | 4 ++++ etc/post-receive | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/ChangeLog b/etc/ChangeLog index 258e9efcc..5527c0331 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-22 Julien Danjou + + * post-receive: Use commiter name and email address. + 2010-09-24 Teodor Zlatanov * post-receive: Use the emailprefix again. diff --git a/etc/post-receive b/etc/post-receive index 421db3e75..aacd6ef7b 100755 --- a/etc/post-receive +++ b/etc/post-receive @@ -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: -- 2.34.1