diff --git a/app/models/repository.rb b/app/models/repository.rb index de2720661..00d80fb31 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -80,6 +80,10 @@ class Repository < ActiveRecord::Base write_attribute(:extra_info, h) end + def report_last_commit + true + end + def supports_cat? scm.supports_cat? end diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 3c89ba6d5..51a2ca82d 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -38,6 +38,10 @@ class Repository::Git < Repository 'Git' end + def report_last_commit + extra_report_last_commit + end + def extra_report_last_commit return false if extra_info.nil? v = extra_info["extra_report_last_commit"] diff --git a/app/views/repositories/_dir_list.rhtml b/app/views/repositories/_dir_list.rhtml index 5590652f5..84efcfc27 100644 --- a/app/views/repositories/_dir_list.rhtml +++ b/app/views/repositories/_dir_list.rhtml @@ -3,10 +3,12 @@