diff options
| author | Saku Ytti <saku@ytti.fi> | 2014-03-21 10:44:52 +0200 | 
|---|---|---|
| committer | Saku Ytti <saku@ytti.fi> | 2014-03-21 10:44:52 +0200 | 
| commit | e1532e713595a218dc871b3ac2d2de3d3158ce15 (patch) | |
| tree | a6ad5cf7ddca0a6383cd5a8defce553dc4540082 | |
| parent | 76297426b9c0f462f6ef973e1ede37bdbdf1ee2a (diff) | |
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.
| -rw-r--r-- | lib/oxidized/output/git.rb | 2 | ||||
| -rw-r--r-- | oxidized.gemspec | 2 | 
2 files changed, 3 insertions, 1 deletions
| 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 ) | 
