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