summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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