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

GitBranch.vala
GitRepo.vala

index ef8f65f..a130372 100644 (file)
@@ -67,8 +67,7 @@ public class GitBranch : Object
        var branches =  new Gee.HashMap<string,GitBranch>();
                var local =  new Gee.HashMap<string,GitBranch>();
                var remotes  =  new Gee.HashMap<string,GitBranch>();
-               
-               
+                
 
                repo.repo.loadRemoteHeads();
                
index ef3d289..e18872b 100644 (file)
@@ -983,16 +983,16 @@ public class GitRepo : Object
     }
     
     public void loadRemoteHeads(bool force = false)
-               {
-                       
-                       if (!force && this.remote_heads != null) {
-                               return;
-                       }
-                       var r = this.repo.lookup_remote("origin");
-                       var cb = new GitCallbacks(this);
-                       r.connect(Ggit.Direction.FETCH, cb, null, null);
-                       this.remote_heads = r.list();
+       {
                
+               if (!force && this.remote_heads != null) {
+                       return;
                }
+               var r = this.repo.lookup_remote("origin");
+               var cb = new GitCallbacks(this);
+               r.connect(Ggit.Direction.FETCH, cb, null, null);
+               this.remote_heads = r.list();
+       
+       }
     
 }