summaryrefslogtreecommitdiffstats
path: root/app/models/repository/git.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-13 03:51:14 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-13 03:51:14 +0000
commitd21b35d32a7353a698bd625611ee13c71bb42bbf (patch)
treefa077d35e9d1abd0e017b33b11df1e236c9d684e /app/models/repository/git.rb
parent5ca257181fe17dd3564a97789b4d31917e41af98 (diff)
downloadredmine-d21b35d32a7353a698bd625611ee13c71bb42bbf.tar.gz
redmine-d21b35d32a7353a698bd625611ee13c71bb42bbf.zip
scm: git: get "extra_report_last_commit" value from extra_info (#8365, #7047).
Browsing repository tree performance problem is git only. So, adding new "report_last_commit" column is very expensive. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5768 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/git.rb')
-rw-r--r--app/models/repository/git.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index f02cf1505..3c89ba6d5 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -39,7 +39,10 @@ class Repository::Git < Repository
end
def extra_report_last_commit
- true
+ return false if extra_info.nil?
+ v = extra_info["extra_report_last_commit"]
+ return false if v.nil?
+ v.to_s != '0'
end
def supports_directory_revisions?