Git.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 08:23:06 +0000 (16:23 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 08:23:06 +0000 (16:23 +0800)
Git.vala

index dab9d5d..b62439e 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -23,7 +23,7 @@ void main()
        GLib.Timeout.add (1, () => {
       GLib.debug("Meanwhile");
       return true;
-    }, GLib.Priority.DEFAULT);
+    }, GLib.Priority.HIGH);
        
        var loop = new MainLoop();
        
@@ -313,6 +313,7 @@ namespace  GitLive {
                                }
                                var r = this.repo.lookup_remote("origin");
                                r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
+                               yield;
                                this.remote_heads = r.list();
                                
                                foreach(var br in this.remote_heads) {