aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-01-12 15:15:51 -0800
committerDan Fandrich <danf@mageia.org>2024-01-12 15:16:24 -0800
commit9feda218673655c8e306980785228242418b1f59 (patch)
treeb457c622967f006dc8b8947fd9839d95f993fd16 /deployment
parent8ff229cb46f2c7b727916b579b2fb93a2f424d20 (diff)
downloadpuppet-9feda218673655c8e306980785228242418b1f59.tar
puppet-9feda218673655c8e306980785228242418b1f59.tar.gz
puppet-9feda218673655c8e306980785228242418b1f59.tar.bz2
puppet-9feda218673655c8e306980785228242418b1f59.tar.xz
puppet-9feda218673655c8e306980785228242418b1f59.zip
Further adapt git-post-receive-hook
Diffstat (limited to 'deployment')
-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):