[Libreoffice-commits] dev-tools.git: git-hooks/libexttextcat.git
Miklos Vajna
vmiklos at suse.cz
Fri Apr 5 02:14:29 PDT 2013
git-hooks/libexttextcat.git/hooks/update | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 08a0023fa9996db9eb97d26461a0031d254d49f9
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Fri Apr 5 11:14:02 2013 +0200
git-hooks: sync libexttextcat with core
Change-Id: I16713d6ce01803ae6638102d0f9b36182d6bdaa3
diff --git a/git-hooks/libexttextcat.git/hooks/update b/git-hooks/libexttextcat.git/hooks/update
index 816c266..2145fa0 100755
--- a/git-hooks/libexttextcat.git/hooks/update
+++ b/git-hooks/libexttextcat.git/hooks/update
@@ -14,6 +14,7 @@ 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"
@@ -54,8 +55,9 @@ date_format="%F %R %z"
num_path_components=2
# Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
if expr "$2" : '0*$' >/dev/null ; then
- subject="Changes to '${1##refs/heads/}'"
+ subject="$repo: Changes to '${1##refs/heads/}'"
else
base=$(git-merge-base "$2" "$3")
subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -68,7 +70,6 @@ else
if [ "$branch" != "master" ] ; then
subject="Branch '$branch' - $subject"
fi
- repo=$(basename $GIT_DIR)
subject="$repo: $subject"
fi
@@ -135,5 +136,5 @@ else
done
fi |
mail -s "$subject" -a "X-Git-Repository: git://anongit.freedesktop.org/git/libreoffice/libexttextcat.git" \
- -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" $recipients
+ -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" -a "From: $from" $recipients
exit 0
More information about the Libreoffice-commits
mailing list