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 /lib/oxidized | |
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.
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/output/git.rb | 2 |
1 files changed, 2 insertions, 0 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 |