mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18: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:
parent
ec50db61fa
commit
c4c230bd0f
@ -7,9 +7,13 @@ if grep -q '^Autobuild.User' "$1"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
|
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"
|
cat <<EOF >> "$1"
|
||||||
|
|
||||||
Autobuild-User: $fullname <$USER@samba.org>
|
Autobuild-User: $fullname <$mailaddr>
|
||||||
Autobuild-Date: $(date) on $(hostname)
|
Autobuild-Date: $(date) on $(hostname)
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user