From: Alan Knowles Date: Mon, 5 Nov 2018 06:50:16 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=aa918439d9cb7113787b05154fa6d00154cbb8a8 sync --- diff --git a/GitRepo.vala b/GitRepo.vala index c7e60701..2bfa2a1a 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -343,9 +343,10 @@ public class GitRepo : Object } FileUtils.set_contents(this.gitdir + "/.gitlive-active-ticket" , ticket.id); this.activeTicket = ticket; + return true; } - public void createBranchNamed(string branchname) + public bool createBranchNamed(string branchname) { try { @@ -367,12 +368,14 @@ public class GitRepo : Object notification.show(); - } catch(e) { + } catch(Error e) { GitMonitor.gitmonitor.pauseError(e.message); + return false; } this.loadBranches(); // update branch list... GitMonitor.gitmonitor.runQueue(); // commit any outstanding... + return true; }