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 ++ oxidized.gemspec | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 diff --git a/oxidized.gemspec b/oxidized.gemspec index de0a344..94474f6 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'oxidized' - s.version = '0.0.40' + s.version = '0.0.42' s.platform = Gem::Platform::RUBY s.authors = [ 'Saku Ytti' ] s.email = %w( saku@ytti.fi ) -- cgit v1.2.1