diff options
author | Björn JACKE <bj@SerNet.DE> | 2010-11-11 10:12:07 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-10 23:56:37 +0000 |
commit | c4c230bd0fb25a0433e36c4e4a315268ff44fbe0 (patch) | |
tree | e5e30962f718d9df0e9b58c57767ad6bcf82ec16 /script | |
parent | ec50db61fa6f3cf026c1f0f40528587b3dec8da3 (diff) | |
download | samba-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
Diffstat (limited to 'script')
-rwxr-xr-x | script/commit_mark.sh | 6 |
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 |