diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 18:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 18:09:24 +0300 |
commit | f8d15ca65390475e356b06dedc51e10ccd179f86 (patch) | |
tree | ef916d4e8e11c9e00d809e5cdcf63814e86d6e89 /lib/gitlab/git_access.rb | |
parent | 3ab4feda4dce9c9f0672375ae27c2f7c2ba6f4ad (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index d6c87b858a8..45db423187c 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -60,7 +60,6 @@ module Gitlab @logger = Checks::TimedLogger.new(timeout: INTERNAL_TIMEOUT, header: LOG_HEADER) @changes = changes - check_namespace! check_protocol! check_valid_actor! check_active_user! @@ -72,11 +71,7 @@ module Gitlab return custom_action if custom_action check_db_accessibility!(cmd) - - ensure_project_on_push!(cmd, changes) - - check_project_accessibility! - add_project_moved_message! + check_project!(changes, cmd) check_repository_existence! case cmd @@ -113,6 +108,13 @@ module Gitlab private + def check_project!(changes, cmd) + check_namespace! + ensure_project_on_push!(cmd, changes) + check_project_accessibility! + add_project_moved_message! + end + def check_custom_action(cmd) nil end |