[PATCH 4/5] gnome-post-receive-email: Add X-Project header
- From: Todd Zullinger <tmz pobox com>
- To: gnome-infrastructure gnome org
- Subject: [PATCH 4/5] gnome-post-receive-email: Add X-Project header
- Date: Wed, 22 Jul 2009 13:22:13 -0400
This header includes the project description.
---
gnome-post-receive-email | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index 2950832..9a489cf 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -54,6 +54,9 @@ INVALID_TAG = 3
# Short name for project
projectshort = None
+# Project description
+projectdesc = None
+
# Human readable name for user, might be None
user_fullname = None
@@ -122,12 +125,14 @@ To: %(recipients)s
From: %(from_address)s
Subject: %(subject)s
Keywords: %(projectshort)s
+X-Project: %(projectdesc)s
X-Git-Refname: %(refname)s
""") % {
'recipients': recipients,
'from_address': from_address,
'subject': subject,
'projectshort': projectshort,
+ 'projectdesc': projectdesc,
'refname': self.refname
}
@@ -825,6 +830,7 @@ def make_change(oldrev, newrev, refname):
def main():
global projectshort
+ global projectdesc
global user_fullname
global recipients
@@ -834,6 +840,7 @@ def main():
return
projectshort = get_module_name()
+ projectdesc = get_project_description()
try:
recipients=git.config("hooks.mailinglist", _quiet=True)
--
1.6.3.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]