From 86eb4464085d32efef380f7157dbfa02814727f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Sep 2025 22:55:32 -0500 Subject: [PATCH] this can bypass the normal check --- doPatch.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doPatch.go b/doPatch.go index b41f6a7..6620e92 100644 --- a/doPatch.go +++ b/doPatch.go @@ -40,6 +40,11 @@ func isPatchingSafe() bool { } func doPatch() error { + if argv.Patch.Repos != nil { + dumpDirtyRepos() + return nil + } + if !isPatchingSafe() { return log.Errorf("not safe to work on patches") } @@ -144,11 +149,6 @@ func doPatch() error { return nil } - if argv.Patch.Repos != nil { - dumpDirtyRepos() - return nil - } - // if nothing, show patches & dirty repos me.forge.Patchsets.PrintTable() dumpDirtyRepos()