summaryrefslogtreecommitdiff
path: root/doNormal.go
diff options
context:
space:
mode:
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")