Skip to content

Commit c59c0d6

Browse files
authored
Merge pull request #3376 from tomjonandy/fix/keychain-credentials
Fix issue where keychain github credentials wouldn't work
2 parents 215f496 + 0e99109 commit c59c0d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Library/Homebrew/utils/github.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def api_credentials_from_keychain
8787
def api_credentials_type
8888
token, username = api_credentials
8989
return :none if !token || token.empty?
90-
return :keychain if !username || username.empty?
91-
:environment
90+
return :environment if !username || username.empty?
91+
:keychain
9292
end
9393

9494
def api_credentials_error_message(response_headers, needed_scopes)

0 commit comments

Comments
 (0)