summaryrefslogtreecommitdiff
path: root/windowPatches.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowPatches.go')
-rw-r--r--windowPatches.go20
1 files changed, 5 insertions, 15 deletions
diff --git a/windowPatches.go b/windowPatches.go
index 4685561..f0e5d6d 100644
--- a/windowPatches.go
+++ b/windowPatches.go
@@ -157,21 +157,11 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
}
}
s.submitB = s.grid.NewButton("Submit", func() {
- sendDevelDiff(s.reason.String())
- /*
- dirname := "submit-patchset.quilt"
- patchdir := filepath.Join(me.userHomePwd.String(), dirname)
- if shell.Exists(patchdir) {
- log.Info("patchset dir already exists", patchdir)
- shell.PathRun(me.userHomePwd.String(), []string{"rm", "-rf", dirname})
- }
- os.MkdirAll(patchdir, os.ModeDir)
- if !shell.Exists(patchdir) {
- log.Info("something went wrong making", patchdir)
- return
- }
- me.repos.View.MakePatchset(patchdir)
- */
+ if err := sendDevelDiff(s.reason.String()); err != nil {
+ log.Info("sending patches failed", err)
+ } else {
+ log.Info("sent patch set ok")
+ }
})
s.grid.NewButton("Show Patchsets", func() {
listPatches()