diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 04:48:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 04:48:14 -0500 |
| commit | 19cbfa7a819607e2602d48617ce9e96797fa6e1a (patch) | |
| tree | 3ea6ba8804b4ad9b03c6a95e4f09e317dcf237dc /doNormal.go | |
| parent | 898592febc56eb1073525636666063396d85aca6 (diff) | |
trying to get this to run again
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doNormal.go b/doNormal.go index 38505de..849122e 100644 --- a/doNormal.go +++ b/doNormal.go @@ -68,8 +68,7 @@ func (a *args) DoNormal() (string, error) { func doNormalAttempt() (string, error) { start := time.Now() err := me.forge.DoAllCheckoutUser(argv.Force) - me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes - me.forge.SaveRepos() + me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes dur := time.Since(start) log.Printf("Checked out %d user braches in %s\n", me.forge.Repos.Len(), shell.FormatDuration(dur)) if err != nil { @@ -156,11 +155,11 @@ func doNormalStatus() bool { // this also verifies that func checkNormalRepoState(repo *gitpb.Repo) error { var err error - tmp := filepath.Join(config.Get("ReposDir"), repo.GetNamespace()) + tmp := filepath.Join(config.Get("gopath"), repo.GetNamespace()) if tmp != repo.FullPath { log.Infof("%s != %s\n", repo.FullPath, tmp) - if strings.HasPrefix(repo.FullPath, config.Get("ReposDir")) { - tmp = strings.TrimPrefix(repo.FullPath, config.Get("ReposDir")) + if strings.HasPrefix(repo.FullPath, config.Get("gopath")) { + tmp = strings.TrimPrefix(repo.FullPath, config.Get("gopath")) tmp = strings.Trim(tmp, "/") repo.Namespace = tmp err = log.Errorf("namespace set to filepath") |
