summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-03-11 07:00:09 +0000
committerGo MAEDA <maeda@farend.jp>2021-03-11 07:00:09 +0000
commit4dfa6fc72461c4c880f264355ee4e0a375b1be9a (patch)
tree0b617d3e1d5189266db179dda5fe5d6ab43ed751 /app/controllers/repositories_controller.rb
parent34310eece6a60322e29ee67e44c7a6f9dfe69ef3 (diff)
downloadredmine-4dfa6fc72461c4c880f264355ee4e0a375b1be9a.tar.gz
redmine-4dfa6fc72461c4c880f264355ee4e0a375b1be9a.zip
Allow manually fetching changesets (#8875).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20772 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index b0108d531..3274b942a 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -100,6 +100,11 @@ class RepositoriesController < ApplicationController
alias_method :browse, :show
+ def fetch_changesets
+ @repository.fetch_changesets if @project.active? && @path.empty? && !Setting.autofetch_changesets?
+ show
+ end
+
def changes
@entry = @repository.entry(@path, @rev)
(show_error_not_found; return) unless @entry