summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-01-04 08:42:20 +0000
committerSean McGivern <sean@gitlab.com>2019-01-04 08:42:20 +0000
commit626f3d03676cb7d714d9c5e9d78c76bdfb2ddda0 (patch)
treeb765d63b06e18561e463ef77d3ceb04146a26c00 /app/controllers
parentd56124b5e16e15afd830a1bdc8c34a4a57d898d8 (diff)
parente893f560e01c0039a4fc4c6c93be8e82b5888b3b (diff)
downloadgitlab-ce-626f3d03676cb7d714d9c5e9d78c76bdfb2ddda0.tar.gz
Merge branch 'dm-git-access-any-ce' into 'master'
[CE] Don't run checks for changed refs when specific changes are unknown See merge request gitlab-org/gitlab-ce!23990
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/git_http_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb
index c0aa39d87c6..30e436365de 100644
--- a/app/controllers/projects/git_http_controller.rb
+++ b/app/controllers/projects/git_http_controller.rb
@@ -80,9 +80,7 @@ class Projects::GitHttpController < Projects::GitHttpClientController
end
def access_check
- # Use the magic string '_any' to indicate we do not know what the
- # changes are. This is also what gitlab-shell does.
- access.check(git_command, '_any')
+ access.check(git_command, Gitlab::GitAccess::ANY)
@project ||= access.project
end