aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/mgagit')
-rwxr-xr-xdeployment/mgagit/templates/git-post-receive-hook7
1 files changed, 6 insertions, 1 deletions
diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook
index 226a3358..32ab9b42 100755
--- a/deployment/mgagit/templates/git-post-receive-hook
+++ b/deployment/mgagit/templates/git-post-receive-hook
@@ -216,6 +216,11 @@ class MageiaI18NRevision(git_multimail.Revision):
self.recipients = False
self.output = []
+ # -s is short for --no-patch, but -s works on older git's (e.g. 1.7)
+ self.parents = read_git_lines(['show', '-s', '--format=%P',
+ self.rev.sha1])[0].split()
+
+ self.cc_recipients = ''
i18n_folders = []
# Check files and find i18n folders
@@ -230,7 +235,7 @@ class MageiaI18NRevision(git_multimail.Revision):
keepends=True,
)
if len(self.output):
- # We have some output so lets send the mail...
+ # We have some output so let's send the mail...
self.recipients = 'i18n-reports@ml.mageia.org'
def generate_email_body(self, push):