diff options
Diffstat (limited to 'doClean.go')
| -rw-r--r-- | doClean.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -48,7 +48,7 @@ func doClean() (string, error) { return s, err } - if me.forge.Mode == forgepb.ForgeMode_NORMAL { + if me.forge.IsModeNormal() { s := fmt.Sprintf("Reset all (%d) git repos to the original state (non-destructive)?", me.forge.Repos.Len()) if !fhelp.QuestionUser(s) { s, err = doModeMaster() @@ -60,8 +60,7 @@ func doClean() (string, error) { if err := me.forge.DoAllCheckoutMaster(); err != nil { // badExit(err) } - me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes - me.forge.Repos.SaveVerbose() + me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes all := me.forge.Repos.SortByFullPath() for all.Scan() { @@ -69,8 +68,7 @@ func doClean() (string, error) { doResetRepo(repo) } - me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes - me.forge.Repos.SaveVerbose() + me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes return "all repos should be clean", nil } |
