diff options
author | Colin Guthrie <colin@mageia.org> | 2014-02-09 13:56:44 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-02-09 13:56:44 +0000 |
commit | cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8 (patch) | |
tree | 44ef9a7645b616a75815621445b6e1fc15508972 /deployment/mgagit | |
parent | 45c3e15f063ba493f67e6c3e67780118c86bb1bd (diff) | |
download | puppet-cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8.tar puppet-cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8.tar.gz puppet-cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8.tar.bz2 puppet-cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8.tar.xz puppet-cbc3cf56eb11ff5211981b9f517da4a1fd37d2b8.zip |
mgagit: Avoid unnecessary quotes.
Diffstat (limited to 'deployment/mgagit')
-rwxr-xr-x | deployment/mgagit/templates/git-post-receive-hook | 4 |
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 |