Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/emailer.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/emailer.rb b/lib/emailer.rb
index a98cb2e..8e56c50 100644
--- a/lib/emailer.rb
+++ b/lib/emailer.rb
@@ -25,7 +25,10 @@ module Emailer
author = event.commit_details[:commit_author]
begin
- files = repository.git.commit(sha).diffs.map {|i| i.a_path}
+ files = []
+ Grit::Git.with_timeout(0) do
+ files += repository.git.commit(sha).diffs.map {|i| i.a_path}
+ end
langs = files.collect {|i| next unless i =~ /^po\/(.*).po$/; $1}.compact.join(', ')
rescue Exception => e
logger.warn("Failed to get git diff to compose poole commit files: #{e}")