1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Björn JACKE 2010-11-11 10:12:07 +11:00 committed by Andrew Tridgell
parent ec50db61fa
commit c4c230bd0f

View File

@ -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