GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 06:47:19 +0000 (14:47 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 06:47:19 +0000 (14:47 +0800)
GitBranch.vala

GitBranch.vala
GitRepo.vala

index 3561793..ef8f65f 100644 (file)
@@ -72,8 +72,7 @@ public class GitBranch : Object
 
                repo.repo.loadRemoteHeads();
                
-               
+                
                var r = repo.repo.enumerate_branches(Ggit.BranchType.LOCAL);
                while (r.next()) {
                        var br = r.get() as Ggit.Branch;
index 6f669c2..ef3d289 100644 (file)
@@ -989,7 +989,8 @@ public class GitRepo : Object
                                return;
                        }
                        var r = this.repo.lookup_remote("origin");
-                       r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
+                       var cb = new GitCallbacks(this);
+                       r.connect(Ggit.Direction.FETCH, cb, null, null);
                        this.remote_heads = r.list();
                
                }