aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/mgagit')
-rwxr-xr-xdeployment/mgagit/templates/git-post-receive-hook4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook
index e07015e5..c8265767 100755
--- a/deployment/mgagit/templates/git-post-receive-hook
+++ b/deployment/mgagit/templates/git-post-receive-hook
@@ -174,10 +174,10 @@ if __name__ == '__main__':
if not os.path.exists(infowebdir):
os.makedirs(infowebdir)
lastupdated = git_multimail.read_git_output(
- ['for-each-ref', '--sort=-committerdate', "--format='%(committerdate:iso8601)'", '--count=1', 'refs/heads'],
+ ['for-each-ref', '--sort=-committerdate', "--format=%(committerdate:iso8601)", '--count=1', 'refs/heads'],
)
modfile = open(os.path.join(infowebdir, 'last-modified'), 'w')
- modfile.write(lastupdated.strip("'"))
+ modfile.write(lastupdated)
modfile.close()
except Exception:
pass