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"]