checking if commit() triggers save()
This commit is contained in:
parent
405ddb6994
commit
da0fc653ae
|
@ -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("")
|
||||
|
|
Loading…
Reference in New Issue