fixing git credential helper for GitHub Enterprise

This commit is contained in:
Morgan Delagrange 2013-07-17 10:55:49 -05:00
parent 4af8fb303d
commit 26833e8753

View file

@ -25,8 +25,9 @@ require "boxen/config"
config = Boxen::Config.load
input = $stdin.read
attrs = Hash[input.split($/).map { |l| l.split("=") }]
ghhost = URI(config.ghurl).host
if command != "get" || attrs["host"] != "github.com"
if command != "get" || attrs["host"] != ghhost
require "open4"
fallback = ENV["BOXEN_GIT_CREDENTIAL_FALLBACK"]