sync
[gitlive] / GitRepo.vala
index c7e6070..2bfa2a1 100644 (file)
@@ -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;
     }