diff options
| author | Jeff Carr <[email protected]> | 2025-09-07 22:55:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-07 22:55:32 -0500 |
| commit | 86eb4464085d32efef380f7157dbfa02814727f2 (patch) | |
| tree | 3de4dca2200f5e4b1eac015e44a58ef2226458ff /doPatch.go | |
| parent | b71471c61e09d895f2439f24b503db1bd891d57a (diff) | |
this can bypass the normal check
Diffstat (limited to 'doPatch.go')
| -rw-r--r-- | doPatch.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() |
