[Libreoffice-commits] dev-tools.git: git-hooks/core.git
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jul 13 09:44:08 UTC 2018
git-hooks/core.git/hooks/update | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 87c69789839f854689c16ab0b37fa72d692de79e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Jul 13 11:28:14 2018 +0200
git-hooks, core.git: revert back to default sender, show author+committer
- showing the committer is useful when it differs from author
- if both of them are shown for each commit, then a custom sender is not
needed
The later allows not faking gmail/yahoo addresses, which typically end
up in spam when fdo fakes them.
Change-Id: Ic3205fe09105c1984e1770df31f76981db63dcea
Reviewed-on: https://gerrit.libreoffice.org/57387
Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/git-hooks/core.git/hooks/update b/git-hooks/core.git/hooks/update
index b23aee5..395ed17 100755
--- a/git-hooks/core.git/hooks/update
+++ b/git-hooks/core.git/hooks/update
@@ -14,7 +14,6 @@ if [ "$(id -u -n )" != "logerrit" ] ; then
echo "*** The reference for this repo is gerrit. do not push directly to fdo" >&2
exit 1
fi
-from="$(git show -s --pretty=format:'%an <%ae>' $3^{})"
project=$(cat $GIT_DIR/description)
recipients="libreoffice-commits at lists.freedesktop.org"
@@ -121,7 +120,7 @@ else
esac
bytes=0
IFS="$(echo)"
- git-rev-list "$3" "^$base" | while read rev; do git-show -M $rev; done | sed 's#\\#\\\\#g' |
+ git-rev-list "$3" "^$base" | while read rev; do git-show -M --pretty=fuller $rev; done | sed 's#\\#\\\\#g' |
while read line
do
if [ "$bytes" -ge "0" ] ; then
@@ -136,5 +135,5 @@ else
done
fi |
mail -s "$subject" -a "X-Git-Repository: git://anongit.freedesktop.org/git/libreoffice/core.git" \
- -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" -a "From: $from" $recipients
+ -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" $recipients
exit 0
More information about the Libreoffice-commits
mailing list