checking if commit() triggers save()

This commit is contained in:
Jeff Carr 2025-09-13 01:06:55 -05:00
parent 405ddb6994
commit da0fc653ae
1 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,7 @@ package main
import ( import (
"os" "os"
"go.wit.com/lib/config"
"go.wit.com/lib/gui/shell" "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/gitpb" "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log" "go.wit.com/log"
@ -21,11 +22,10 @@ func doCommit() error {
badExit(err) badExit(err)
} }
newpatches = true newpatches = true
} repo.CheckDirty()
if !argv.Commit.Submit {
okExit("")
} }
if newpatches { if newpatches {
config.SetChanged("repos", true)
return doPatchSubmit() return doPatchSubmit()
} }
okExit("") okExit("")