scm: git: output log if revisions() catches an error (#7146).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5763 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-12 23:44:43 +00:00
parent 30aecd5e25
commit b8850ca9d6
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ module Redmine
end
end
revs
rescue ScmCommandAborted
rescue ScmCommandAborted => e
logger.error("git log #{from_to.to_s} error: #{e.message}")
revs
end