File: util.go

package info (click to toggle)
hub 2.14.2~ds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,376 kB
  • sloc: sh: 1,049; ruby: 857; makefile: 89
file content (10 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
package github

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

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