package github

import (
	"github.com/github/hub/git"
)

func IsHttpsProtocol() bool {
	httpProtocol, _ := git.Config("hub.protocol")
	if httpProtocol == "https" {
		return true
	}

	httpClone, _ := git.Config("--bool hub.http-clone")
	if httpClone == "true" {
		return true
	}

	return false
}

package github

import (
	"github.com/github/hub/git"
)

func IsHttpsProtocol() bool {
	httpProtocol, _ := git.Config("hub.protocol")
	if httpProtocol == "https" {
		return true
	}

	return false
}

Drop support for legacy `hub.http-clone` git config value
Drop support for legacy `hub.http-clone` git config value

This was kept for backwards compatibility, but was silently broken for
some tiem now. Nobody reported it, so I think it can be safely assumes
that nobody uses this config value anymore.
