diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-14 16:38:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-14 16:38:57 +0300 |
commit | 10e18de60f55811137871acefd331d2d5a41f237 (patch) | |
tree | b227511752fb7021acec83fd3b2b5499434ae7f8 /app/controllers/projects_controller.rb | |
parent | 757327a59bcaecb986b0c07ae0cf09ed011e18ce (diff) |
Add latest changes from gitlab-org/gitlab@13-12-stable-ee
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index e66893ac269..fb977a5ee42 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -510,7 +510,7 @@ class ProjectsController < Projects::ApplicationController # `project` calls `find_routable!`, so this will trigger the usual not-found # behaviour when the user isn't authorized to see the project - return unless project + return if project.nil? || performed? redirect_to(request.original_url.sub(%r{\.git/?\Z}, '')) end |