aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-01-04 14:54:24 +0000
committerColin Guthrie <colin@mageia.org>2014-01-04 14:54:24 +0000
commit934aa818b857ef66088a42c2ac51e34c08c6e8f4 (patch)
treeb2998df5509f889a3b68deb19eb152bce51bba74
parentd53596770d004fc035ca311c86a54f4c01412b8f (diff)
downloadpuppet-934aa818b857ef66088a42c2ac51e34c08c6e8f4.tar
puppet-934aa818b857ef66088a42c2ac51e34c08c6e8f4.tar.gz
puppet-934aa818b857ef66088a42c2ac51e34c08c6e8f4.tar.bz2
puppet-934aa818b857ef66088a42c2ac51e34c08c6e8f4.tar.xz
puppet-934aa818b857ef66088a42c2ac51e34c08c6e8f4.zip
mgagit: Make sure to strip the single quotes that surround the modifed date.
-rwxr-xr-xdeployment/mgagit/templates/git-post-receive-hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook
index f0e71619..e07015e5 100755
--- a/deployment/mgagit/templates/git-post-receive-hook
+++ b/deployment/mgagit/templates/git-post-receive-hook
@@ -177,7 +177,7 @@ if __name__ == '__main__':
['for-each-ref', '--sort=-committerdate', "--format='%(committerdate:iso8601)'", '--count=1', 'refs/heads'],
)
modfile = open(os.path.join(infowebdir, 'last-modified'), 'w')
- modfile.write(lastupdated)
+ modfile.write(lastupdated.strip("'"))
modfile.close()
except Exception:
pass