From ec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 8 Mar 2016 18:49:32 +0000 Subject: [PATCH] utils: use string arg to IO.popen. Closes Homebrew/homebrew#49882. --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index d3f92d5239..18a3a18fb7 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