summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn JACKE <bj@SerNet.DE>2010-11-11 10:12:07 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-10 23:56:37 +0000
commitc4c230bd0fb25a0433e36c4e4a315268ff44fbe0 (patch)
treee5e30962f718d9df0e9b58c57767ad6bcf82ec16
parentec50db61fa6f3cf026c1f0f40528587b3dec8da3 (diff)
downloadsamba-c4c230bd0fb25a0433e36c4e4a315268ff44fbe0.tar.gz
samba-c4c230bd0fb25a0433e36c4e4a315268ff44fbe0.tar.bz2
samba-c4c230bd0fb25a0433e36c4e4a315268ff44fbe0.zip
autobuild: perfer to use git mail address in autobuild comment
Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 10 23:56:37 UTC 2010 on sn-devel-104
-rwxr-xr-xscript/commit_mark.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/commit_mark.sh b/script/commit_mark.sh
index 93a345bc7b..8495808cc6 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 <<EOF >> "$1"
-Autobuild-User: $fullname <$USER@samba.org>
+Autobuild-User: $fullname <$mailaddr>
Autobuild-Date: $(date) on $(hostname)
EOF
exit 0