From cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 9 Feb 2014 13:56:44 +0000 Subject: mgagit: Avoid unnecessary quotes. --- deployment/mgagit/templates/git-post-receive-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deployment/mgagit/templates/git-post-receive-hook') 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 -- cgit v1.2.1