summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windowRepos.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/windowRepos.go b/windowRepos.go
index 167fb09..a4fcdeb 100644
--- a/windowRepos.go
+++ b/windowRepos.go
@@ -91,6 +91,11 @@ func (r *repoWindow) repoMenu() *gui.Node {
box2.NewButton("merge it all", func() {
r.Disable()
+ if IsAnythingDirty() {
+ log.Info("You can't apply patches when repos are dirty")
+ doCobol()
+ return
+ }
if !r.mergeAllUserToDevel() {
return
}