utils: use string arg to IO.popen.

Closes Homebrew/homebrew#49882.
This commit is contained in:
Mike McQuaid 2016-03-08 18:49:32 +00:00 committed by Xu Cheng
parent bfb44d9e67
commit ec2a3f979e

View File

@ -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