aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/model.go')
-rw-r--r--internal/admin/model.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/admin/model.go b/internal/admin/model.go
index 2841e0a..bf97b0f 100644
--- a/internal/admin/model.go
+++ b/internal/admin/model.go
@@ -66,7 +66,7 @@ type ServerRepos struct {
Name string `json:"name"`
Version string `json:"version"`
Repos []*GitRepo `json:"repos"`
- BasePath string `json:"basepath"`
+ basePath string
}
func loadFromGit(gitURL, filePath string) ([]byte, error) {
@@ -146,7 +146,7 @@ func (s *ServerRepos) ServerPolicies() [][]string {
// ConfigureRepos run reconciler for all repos
func (s *ServerRepos) ConfigureRepos() {
for _, repo := range s.Repos {
- repo.ReconcileRepo(s.BasePath)
+ repo.ReconcileRepo(s.basePath)
}
}