From ced6c8e9329c93ee1f5535b850cac80774ff86d3 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 10 Feb 2014 10:33:27 +0000 Subject: mgagit: Use a 5 second timeout to notify alamut. This keeps the stall time on a push to something sensible should there be a problem. --- 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 f0efaf9c..c33c8a7e 100755 --- a/deployment/mgagit/templates/git-post-receive-hook +++ b/deployment/mgagit/templates/git-post-receive-hook @@ -187,7 +187,7 @@ if __name__ == '__main__': try: req = urllib2.Request('http://alamut.mageia.org:8000', repo_shortname() + '.git') req.add_header('Content-Type', 'x-git/repo') - fp = urllib2.urlopen(req) + fp = urllib2.urlopen(req, timeout=5) if (fp): fp.close() except Exception: -- cgit v1.2.1