From b9656ebb87774163b39a6f423a59fada86b8192a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 07:20:23 -0500 Subject: more and more and more --- find.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/find.go b/find.go index f3d03a6..4b05d0d 100644 --- a/find.go +++ b/find.go @@ -233,12 +233,14 @@ func cloneReposWithPatches() *gitpb.Repos { log.Info("pb thinks it has:", repo.Namespace, t.Refname) } } else { - log.Info("curbranch is doesn't exist. this'll cause all sorts of problems", THEBRANCH, repo.FullPath) - log.Info("checking out with force", repo.FullPath) - repo.CheckoutForce() - repo.RunVerbose([]string{"git", "branch"}) - repo.ReloadForce() - me.forge.Repos.SaveSafe() + if argv.Fix { + log.Info("curbranch is doesn't exist. this'll cause all sorts of problems", THEBRANCH, repo.FullPath) + log.Info("checking out with force", repo.FullPath) + repo.CheckoutForce() + repo.RunVerbose([]string{"git", "branch"}) + repo.ReloadForce() + me.forge.Repos.SaveSafe() + } panic("stop. run 'forge fixer porcelein' and see what happens") } // no user branch -- cgit v1.2.3