diff options
| author | Jeff Carr <[email protected]> | 2025-10-13 07:20:23 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-13 07:20:23 -0500 |
| commit | b9656ebb87774163b39a6f423a59fada86b8192a (patch) | |
| tree | e8ebf9884591773f0652aa0466b5ab47302c89c8 | |
| parent | 3d2f8fa0c1bfe3cddaf1e39a07f9f3955a9bfc1a (diff) | |
more and more and more
| -rw-r--r-- | find.go | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |
