From e1532e713595a218dc871b3ac2d2de3d3158ce15 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 21 Mar 2014 10:44:52 +0200 Subject: Rescue git timeout, fixes #10 At least I hope it fixes #10, since I didn't figure out how to introduce 10s I/O latency to confirm. --- lib/oxidized/output/git.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index f23b35a..b4fa4a8 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -34,6 +34,8 @@ class Git < Output rescue Grit::NoSuchPathError Repo.init_bare repo retry + rescue Grit::Git::GitTimeout + Log.error "git timeout for #{file}" end end -- cgit v1.2.1