Ejemplo n.º 1
0
func reportCrashConfig() (opt string) {
	opt = os.Getenv("HUB_REPORT_CRASH")
	if opt == "" {
		opt, _ = git.GlobalConfig(hubReportCrashConfig)
	}

	return
}
Ejemplo n.º 2
0
func getConfig(key string) (value string, err error) {
	value, err = git.Config(key)
	if value != "" && err == nil {
		return
	}
	value, err = git.GlobalConfig(key)
	return
}
Ejemplo n.º 3
0
func autoUpdateConfig() (opt string) {
	if EnableAutoUpdate {
		opt, _ = git.GlobalConfig(hubAutoUpdateConfig)
	} else {
		opt = "never"
	}

	return
}