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

Method openAdminRepo

config.go:63–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (c *Config) openAdminRepo() (*git.Repository, error) {
64 adminRepo, err := git.EnsureRepo(c.fs, "admin/admin")
65 if err != nil {
66 return nil, err
67 }
68
69 err = adminRepo.Checkout(c.adminRepoHash)
70 if err != nil {
71 return nil, err
72 }
73
74 return adminRepo, nil
75}
76
77func (c *Config) loadConfig(adminRepo *git.Repository) error {
78 // Load config

Callers 3

LoadMethod · 0.95
EnsureConfigMethod · 0.95
EnsureAdminUserMethod · 0.95

Calls 2

EnsureRepoFunction · 0.92
CheckoutMethod · 0.80

Tested by

no test coverage detected