From aa918439d9cb7113787b05154fa6d00154cbb8a8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 5 Nov 2018 14:50:16 +0800 Subject: [PATCH] sync --- GitRepo.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2