summaryrefslogtreecommitdiff
path: root/doClean.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 04:48:14 -0500
committerJeff Carr <[email protected]>2025-10-21 04:48:14 -0500
commit19cbfa7a819607e2602d48617ce9e96797fa6e1a (patch)
tree3ea6ba8804b4ad9b03c6a95e4f09e317dcf237dc /doClean.go
parent898592febc56eb1073525636666063396d85aca6 (diff)
trying to get this to run again
Diffstat (limited to 'doClean.go')
-rw-r--r--doClean.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/doClean.go b/doClean.go
index a4a7932..1445064 100644
--- a/doClean.go
+++ b/doClean.go
@@ -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
}