diff options
Diffstat (limited to 'find.go')
| -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 |
