summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 07:20:23 -0500
committerJeff Carr <[email protected]>2025-10-13 07:20:23 -0500
commitb9656ebb87774163b39a6f423a59fada86b8192a (patch)
treee8ebf9884591773f0652aa0466b5ab47302c89c8
parent3d2f8fa0c1bfe3cddaf1e39a07f9f3955a9bfc1a (diff)
more and more and more
-rw-r--r--find.go14
1 files 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