sync
[gitlive] / GitRepo.vala
index c7e6070..3f014ba 100644 (file)
@@ -336,16 +336,17 @@ public class GitRepo : Object
     }
     
     
-   public bool setActiveTicket(RooTicket ticket, string branchname)
+    public bool setActiveTicket(RooTicket ticket, string branchname)
     {
        if (!this.createBranchNamed(branchname)) {
                return false;
                }
        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;
     }