Git.vala
[gitlive] / Git.vala
index 46aa200..dab9d5d 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -20,18 +20,18 @@ void main()
        Ggit.init();
        
        
-       GLib.Timeout.add (interval, () => {
+       GLib.Timeout.add (1, () => {
       GLib.debug("Meanwhile");
-      return false;
+      return true;
     }, GLib.Priority.DEFAULT);
        
        var loop = new MainLoop();
        
        var a = new GitLive.Repo("/home/alan/gitlive/gitlive");
-       
-       a.loadRemoteHeads.begin((obj,res) => {
+      GLib.debug("Starting");  
+       a.loadRemoteHeads.begin(true, (obj,res) => {
                a.loadRemoteHeads.end(res);
-               print("got results");
+                GLib.debug("got results");
                a.loadLocalBranches();
                loop.quit();
        });