diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 23:57:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 23:57:35 +0000 |
commit | 49f77b37b621ef7d909ed92c76423c9835a29ac7 (patch) | |
tree | 3791b1fba5f4acddbc640600bc928b4dd4cc005f /app/controllers/projects/tree_controller.rb | |
parent | 3263a137a1aee366ca86f1fe5fe066c8a48160d2 (diff) | |
download | gitlab-ce-49f77b37b621ef7d909ed92c76423c9835a29ac7.tar.gz |
Add latest changes from gitlab-org/security/gitlab@15-8-stable-ee
Diffstat (limited to 'app/controllers/projects/tree_controller.rb')
-rw-r--r-- | app/controllers/projects/tree_controller.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/projects/tree_controller.rb b/app/controllers/projects/tree_controller.rb index 1f7912e15df..737a6290431 100644 --- a/app/controllers/projects/tree_controller.rb +++ b/app/controllers/projects/tree_controller.rb @@ -28,15 +28,6 @@ class Projects::TreeController < Projects::ApplicationController def show return render_404 unless @commit - @ref_type = ref_type - if @ref_type == BRANCH_REF_TYPE && ambiguous_ref?(@project, @ref) - branch = @project.repository.find_branch(@ref) - if branch - redirect_to project_tree_path(@project, branch.target) - return - end - end - if tree.entries.empty? if @repository.blob_at(@commit.id, @path) redirect_to project_blob_path(@project, File.join(@ref, @path)) |