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 /doClean.go | |
| parent | 898592febc56eb1073525636666063396d85aca6 (diff) | |
trying to get this to run again
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 } |
