GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 10:27:19 +0000 (18:27 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 10:27:19 +0000 (18:27 +0800)
GitRepo.vala

index 3c25835..b22571c 100644 (file)
@@ -959,7 +959,14 @@ public class GitRepo : Object
     public void doUpdate()
     {
        // update the branches..
-       
+       this.loadBranches();
+       var r = this.repo.lookup_remote("origin");
+               //GLib.debug("connecting '%s'", r.get_url());
+                
+               try {
+                       string[] h = { "a = 1" };
+                       r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
+                       r.connect(Ggit.Direction.FETCH, new GitCallbacks, null, null);
     
     }