diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-23 09:09:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-23 09:09:39 +0300 |
commit | 1165608bfd217a96e133487d6049a989a15789c4 (patch) | |
tree | 181dd3f89a6b42c5085218d33872de8d661dadbd /lib/gitlab/lfs | |
parent | d66f7a4222f48b51c468c3e0b4f1824c9457345e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/lfs')
-rw-r--r-- | lib/gitlab/lfs/client.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/lfs/client.rb b/lib/gitlab/lfs/client.rb index 825d7399190..cd7a94f24d9 100644 --- a/lib/gitlab/lfs/client.rb +++ b/lib/gitlab/lfs/client.rb @@ -97,7 +97,10 @@ module Gitlab end def basic_auth - return unless credentials[:auth_method] == "password" + # Some legacy credentials have a nil auth_method, which means password + # https://gitlab.com/gitlab-org/gitlab/-/issues/328674 + return unless credentials.fetch(:auth_method, 'password') == 'password' + return if credentials.empty? { username: credentials[:user], password: credentials[:password] } end |