summaryrefslogtreecommitdiff
path: root/doNormal.go
diff options
context:
space:
mode:
Diffstat (limited to 'doNormal.go')
-rw-r--r--doNormal.go9
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")