From ad0f39ebdf9f60dffc4765751014c3219d11dc31 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 10 Feb 2014 10:28:58 +0000 Subject: mgagit: Python typo --- deployment/mgagit/templates/git-post-receive-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment/mgagit/templates') diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook index cf7404e2..f0efaf9c 100755 --- a/deployment/mgagit/templates/git-post-receive-hook +++ b/deployment/mgagit/templates/git-post-receive-hook @@ -188,7 +188,7 @@ if __name__ == '__main__': req = urllib2.Request('http://alamut.mageia.org:8000', repo_shortname() + '.git') req.add_header('Content-Type', 'x-git/repo') fp = urllib2.urlopen(req) - if (fp) + if (fp): fp.close() except Exception: pass -- cgit v1.2.1