From c4c230bd0fb25a0433e36c4e4a315268ff44fbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20JACKE?= Date: Thu, 11 Nov 2010 10:12:07 +1100 Subject: [PATCH] autobuild: perfer to use git mail address in autobuild comment Signed-off-by: Andrew Tridgell Autobuild-User: Andrew Tridgell Autobuild-Date: Wed Nov 10 23:56:37 UTC 2010 on sn-devel-104 --- script/commit_mark.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/commit_mark.sh b/script/commit_mark.sh index 93a345bc7b9..8495808cc64 100755 --- a/script/commit_mark.sh +++ b/script/commit_mark.sh @@ -7,9 +7,13 @@ if grep -q '^Autobuild.User' "$1"; then fi fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1) +mailaddr=$(git config user.email) +if test -z "$mailaddr" ; then + mailaddr="$USER@samba.org" +fi cat <> "$1" -Autobuild-User: $fullname <$USER@samba.org> +Autobuild-User: $fullname <$mailaddr> Autobuild-Date: $(date) on $(hostname) EOF exit 0