summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-06 22:50:20 -0500
committerJeff Carr <[email protected]>2025-09-06 22:50:20 -0500
commit3df2601f274645fd9db9b791aa76b62b5f3b6f3a (patch)
tree192923b0a3cac7fbc546f4cf175061c5d6d5109a
parent5c6bbcdbb2938488c37a9e18b713179ee9340ab8 (diff)
don't do patches unless in 'normal' statev0.22.146
-rw-r--r--doPatch.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/doPatch.go b/doPatch.go
index ee74dca..d80723c 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -28,6 +28,11 @@ func doPatchInit() {
}
func doPatch() error {
+ if me.forge.Config.Mode != forgepb.ForgeMode_NORMAL {
+ log.Info("forge requres a 'normal' state to work with patches")
+ return log.Errorf("not in 'normal' forge state")
+ }
+
if argv.Patch.Submit != nil {
_, err := me.forge.SubmitDevelPatchSet(argv.Patch.Submit.Match)
if err != nil {
@@ -143,8 +148,9 @@ func dumpDirtyRepos() {
found := findReposWithPatches()
if found.Len() == 0 {
log.Info("you currently have no repos with patches")
+ } else {
+ me.forge.PrintHumanTable(found)
}
- me.forge.PrintHumanTable(found)
}
// returns bad if patches can not be applied