diff options
| author | Mike McQuaid | 2016-03-08 18:49:32 +0000 |
|---|---|---|
| committer | Xu Cheng | 2016-03-09 16:00:22 +0800 |
| commit | ec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece (patch) | |
| tree | 84e61c1b52cf6a074f554ed93ccbe5f3b09aa977 | |
| parent | bfb44d9e6723f97ceddcac2774bd89146cad0330 (diff) | |
| download | brew-ec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece.tar.bz2 | |
utils: use string arg to IO.popen.
Closes Homebrew/homebrew#49882.
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index d3f92d523..18a3a18fb 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -511,7 +511,7 @@ module GitHub if ENV["HOMEBREW_GITHUB_API_TOKEN"] ENV["HOMEBREW_GITHUB_API_TOKEN"] else - github_credentials = IO.popen(["git", "credential-osxkeychain", "get"], "w+") do |io| + github_credentials = IO.popen("git credential-osxkeychain get", "w+") do |io| io.puts "protocol=https\nhost=github.com" io.close_write io.read |
