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