From 26833e875310fe96e1172ace01cf51ca89ccda24 Mon Sep 17 00:00:00 2001 From: Morgan Delagrange Date: Wed, 17 Jul 2013 10:55:49 -0500 Subject: [PATCH] fixing git credential helper for GitHub Enterprise --- script/boxen-git-credential | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/boxen-git-credential b/script/boxen-git-credential index 1960ff4..2382c7f 100755 --- a/script/boxen-git-credential +++ b/script/boxen-git-credential @@ -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"]