this can bypass the normal check

This commit is contained in:
Jeff Carr 2025-09-07 22:55:32 -05:00
parent b71471c61e
commit 86eb446408
1 changed files with 5 additions and 5 deletions

View File

@ -40,6 +40,11 @@ func isPatchingSafe() bool {
} }
func doPatch() error { func doPatch() error {
if argv.Patch.Repos != nil {
dumpDirtyRepos()
return nil
}
if !isPatchingSafe() { if !isPatchingSafe() {
return log.Errorf("not safe to work on patches") return log.Errorf("not safe to work on patches")
} }
@ -144,11 +149,6 @@ func doPatch() error {
return nil return nil
} }
if argv.Patch.Repos != nil {
dumpDirtyRepos()
return nil
}
// if nothing, show patches & dirty repos // if nothing, show patches & dirty repos
me.forge.Patchsets.PrintTable() me.forge.Patchsets.PrintTable()
dumpDirtyRepos() dumpDirtyRepos()