Uncommited changes synced
[gitlive] / GitMonitorQueue.vala
index 1988d4f..ff3bd28 100644 (file)
@@ -41,7 +41,7 @@ public class GitMonitorQueue : MonitorNamePathDir {
 
                        this.vname =  this.vdir + (this.vdir.length > 0 ? "/" : "") + this.name;
                        
-                       this.repo = GitRepo.get(this.gitpath);
+                       this.repo = GitRepo.get_sync(this.gitpath);
                        
                        // trigger the suggestion to start a new branch
                        
@@ -119,8 +119,8 @@ public class GitMonitorQueue : MonitorNamePathDir {
                }
                public static string messageToString(Gee.ArrayList<GitMonitorQueue> messages ) {
                        string[] ret = {};
-                       for(var i =0; i < messages.length; i++) {
-                               ret+= messages.index(i).message;
+                       for(var i =0; i < messages.size; i++) {
+                               ret+= messages.get(i).message;
                        }
                        return string.joinv("\n",ret);
                }