summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-15 14:23:26 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-15 14:23:26 +0200
commitbb9f827ddc51eba73c78be83b977a07e10638936 (patch)
treed9cff42442d5df65763c098c9c47e720e3ceaef8 /lib
parent86f39fece2273319e2c960d96b131924a9fbdc3c (diff)
downloadgitlab-ce-bb9f827ddc51eba73c78be83b977a07e10638936.tar.gz
Fix fetching LFS objects for private CI projects
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/backend/grack_auth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/backend/grack_auth.rb b/lib/gitlab/backend/grack_auth.rb
index 478f145bfed..ab94abeda77 100644
--- a/lib/gitlab/backend/grack_auth.rb
+++ b/lib/gitlab/backend/grack_auth.rb
@@ -63,7 +63,7 @@ module Grack
def ci_request?(login, password)
matched_login = /(?<s>^[a-zA-Z]*-ci)-token$/.match(login)
- if project && matched_login.present? && git_cmd == 'git-upload-pack'
+ if project && matched_login.present?
underscored_service = matched_login['s'].underscore
if underscored_service == 'gitlab_ci'