diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 09:11:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 09:11:25 +0300 |
commit | fd92c8afee165b1da0f0d2386fdf4382bf6d7ab2 (patch) | |
tree | d4d7cc642a6de36c59adf6375afabdfdc0630fe0 /app/controllers | |
parent | 676396cd60c28640534bc56a1183fbf9d179ec47 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/find_file_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/projects/find_file_controller.rb b/app/controllers/projects/find_file_controller.rb index b5099d555ae..1777497ee52 100644 --- a/app/controllers/projects/find_file_controller.rb +++ b/app/controllers/projects/find_file_controller.rb @@ -14,7 +14,9 @@ class Projects::FindFileController < Projects::ApplicationController urgency :low, [:show, :list] def show - return render_404 unless @repository.commit(@ref) + return render_404 unless @commit + + @ref_type = ref_type respond_to do |format| format.html @@ -22,7 +24,7 @@ class Projects::FindFileController < Projects::ApplicationController end def list - file_paths = @repo.ls_files(@ref) + file_paths = @repo.ls_files(@commit.id) respond_to do |format| format.json { render json: file_paths } |