From 8089012135384a912df88ab0257554520a4b06f8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 5 Nov 2018 15:36:36 +0800 Subject: [PATCH] handling of old branches --- GitRepo.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 77a56f2f..19163115 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -347,6 +347,7 @@ public class GitRepo : Object return true; } + public bool createBranchNamed(string branchname) { @@ -374,7 +375,7 @@ public class GitRepo : Object this.git(cmd); } catch(Error e) { try { - string[] cmd = { "mergetool" }; + string[] cmd = { "mergetool" , "--no-prompt" }; this.git(cmd); cmd = { "commit", "-m" , "Fix merge conflicts from master" }; this.git(cmd); @@ -398,7 +399,7 @@ public class GitRepo : Object string[] cmd = { "checkout", "-b" , branchname }; this.git(cmd); - this.push(); + this.push(); } catch(Error ee) { GitMonitor.gitmonitor.pauseError(ee.message); return false; -- 2.39.2