diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 14:23:26 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 14:23:26 +0200 |
commit | bb9f827ddc51eba73c78be83b977a07e10638936 (patch) | |
tree | d9cff42442d5df65763c098c9c47e720e3ceaef8 /lib | |
parent | 86f39fece2273319e2c960d96b131924a9fbdc3c (diff) | |
download | gitlab-ce-bb9f827ddc51eba73c78be83b977a07e10638936.tar.gz |
Fix fetching LFS objects for private CI projects
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/backend/grack_auth.rb | 2 |
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' |