From 934aa818b857ef66088a42c2ac51e34c08c6e8f4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 4 Jan 2014 14:54:24 +0000 Subject: mgagit: Make sure to strip the single quotes that surround the modifed date. --- deployment/mgagit/templates/git-post-receive-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment/mgagit') 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 -- cgit v1.2.1