GitRepo.vala
[gitlive] / GitRepo.vala
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();
+       
+       }
     
 }