aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-03-08 18:49:32 +0000
committerXu Cheng2016-03-09 16:00:22 +0800
commitec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece (patch)
tree84e61c1b52cf6a074f554ed93ccbe5f3b09aa977 /Library/Homebrew
parentbfb44d9e6723f97ceddcac2774bd89146cad0330 (diff)
downloadbrew-ec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece.tar.bz2
utils: use string arg to IO.popen.
Closes Homebrew/homebrew#49882.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/utils.rb2
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