diff options
-rwxr-xr-x | deployment/mgagit/templates/git-post-receive-hook | 2 |
1 files changed, 1 insertions, 1 deletions
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: |