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