diff options
| author | Thomas Andrew | 2017-10-26 18:54:48 +0100 |
|---|---|---|
| committer | Thomas Andrew | 2017-10-26 18:54:48 +0100 |
| commit | 0e991095f14c285e482b4ce2701af50fafb08431 (patch) | |
| tree | 38ca22c70c10bf5d1638d216c91afbe2766a8ad4 /Library | |
| parent | badbb00b0867846afa6d55275bca4edff959e908 (diff) | |
| download | brew-0e991095f14c285e482b4ce2701af50fafb08431.tar.bz2 | |
Fix issue where keychain github credentials wouldn't work
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils/github.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index e73951c8d..be9bf4dd3 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -87,8 +87,8 @@ module GitHub def api_credentials_type token, username = api_credentials return :none if !token || token.empty? - return :keychain if !username || username.empty? - :environment + return :environment if !username || username.empty? + :keychain end def api_credentials_error_message(response_headers, needed_scopes) |
