MCPcopy Create free account
hub / github.com/belak/gitdir / Load

Method Load

config.go:54–61  ·  view source on GitHub ↗

Load will load the config from the given fs.

()

Source from the content-addressed store, hash-verified

52
53// Load will load the config from the given fs.
54func (c *Config) Load() error {
55 adminRepo, err := c.openAdminRepo()
56 if err != nil {
57 return err
58 }
59
60 return c.loadConfig(adminRepo)
61}
62
63func (c *Config) openAdminRepo() (*git.Repository, error) {
64 adminRepo, err := git.EnsureRepo(c.fs, "admin/admin")

Callers 5

EnsureAdminUserMethod · 0.95
ReloadMethod · 0.95
runUpdateHookMethod · 0.95
cmdHookFunction · 0.95
mainFunction · 0.80

Calls 2

openAdminRepoMethod · 0.95
loadConfigMethod · 0.95

Tested by

no test coverage detected