aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
diff options
context:
space:
mode:
authorMartin Afanasjew2016-07-25 13:36:04 +0200
committerMartin Afanasjew2016-07-27 21:27:25 +0200
commit87540ada6af176481f16f2388d32d8d88f136d76 (patch)
tree8d0cbaab23341884ce9bda194c56cbad25b3c803 /Library/Homebrew/utils/github.rb
parentbdc1991d7792f495a540fe775da01f408cc4c640 (diff)
downloadbrew-87540ada6af176481f16f2388d32d8d88f136d76.tar.bz2
utils/github: fix reverted order of credentials
We always return the token/password first and, if applicable, the user name is the second element in the returned array. Closes #581. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library/Homebrew/utils/github.rb')
-rw-r--r--Library/Homebrew/utils/github.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index 7f0b94567..c7e43ec07 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -50,7 +50,7 @@ module GitHub
if ENV["HOMEBREW_GITHUB_API_TOKEN"]
ENV["HOMEBREW_GITHUB_API_TOKEN"]
elsif ENV["HOMEBREW_GITHUB_API_USERNAME"] && ENV["HOMEBREW_GITHUB_API_PASSWORD"]
- [ENV["HOMEBREW_GITHUB_API_USERNAME"], ENV["HOMEBREW_GITHUB_API_PASSWORD"]]
+ [ENV["HOMEBREW_GITHUB_API_PASSWORD"], ENV["HOMEBREW_GITHUB_API_USERNAME"]]
else
github_credentials = api_credentials_from_keychain
github_username = github_credentials[/username=(.+)/, 1]