aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-10-29 16:57:21 +0000
committerGitHub2017-10-29 16:57:21 +0000
commitc59c0d682087f452329f8c1324e16c99c6d0cd2d (patch)
tree951b6fbb916c463ea4ca48d9c55db8a6b4661e28 /Library
parent215f49684b851f750537ca1052f2f740974c7f74 (diff)
parent0e991095f14c285e482b4ce2701af50fafb08431 (diff)
downloadbrew-c59c0d682087f452329f8c1324e16c99c6d0cd2d.tar.bz2
Merge pull request #3376 from tomjonandy/fix/keychain-credentials
Fix issue where keychain github credentials wouldn't work
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/github.rb4
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)