MCPcopy Create free account
hub / github.com/asim/git-http-backend / getConfigSetting

Function getConfigSetting

server/server.go:342–351  ·  view source on GitHub ↗
(service_name string, dir string)

Source from the content-addressed store, hash-verified

340}
341
342func getConfigSetting(service_name string, dir string) bool {
343 service_name = strings.Replace(service_name, "-", "", -1)
344 setting := getGitConfig("http."+service_name, dir)
345
346 if service_name == "uploadpack" {
347 return setting != "false"
348 }
349
350 return setting == "true"
351}
352
353func getGitConfig(config_name string, dir string) string {
354 args := []string{"config", config_name}

Callers 1

hasAccessFunction · 0.85

Calls 1

getGitConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…