summaryrefslogtreecommitdiff
path: root/doNormal.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-20 13:19:24 -0500
committerJeff Carr <[email protected]>2025-10-20 13:19:24 -0500
commit898592febc56eb1073525636666063396d85aca6 (patch)
tree507d33eefc9ba5d467c2c5ce829bdd13968f92e8 /doNormal.go
parent3246e9b1f7ba7b983ca536f06d1dbbb636d1ad5b (diff)
notsure
Diffstat (limited to 'doNormal.go')
-rw-r--r--doNormal.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doNormal.go b/doNormal.go
index 537b751..38505de 100644
--- a/doNormal.go
+++ b/doNormal.go
@@ -156,11 +156,11 @@ func doNormalStatus() bool {
// this also verifies that
func checkNormalRepoState(repo *gitpb.Repo) error {
var err error
- tmp := filepath.Join(me.forge.Config.ReposDir, repo.GetNamespace())
+ tmp := filepath.Join(config.Get("ReposDir"), repo.GetNamespace())
if tmp != repo.FullPath {
log.Infof("%s != %s\n", repo.FullPath, tmp)
- if strings.HasPrefix(repo.FullPath, me.forge.Config.ReposDir) {
- tmp = strings.TrimPrefix(repo.FullPath, me.forge.Config.ReposDir)
+ if strings.HasPrefix(repo.FullPath, config.Get("ReposDir")) {
+ tmp = strings.TrimPrefix(repo.FullPath, config.Get("ReposDir"))
tmp = strings.Trim(tmp, "/")
repo.Namespace = tmp
err = log.Errorf("namespace set to filepath")