Git.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 Feb 2019 09:17:15 +0000 (17:17 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 Feb 2019 09:17:15 +0000 (17:17 +0800)
Git.vala

index a9cf2f7..912ff86 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -8,10 +8,12 @@ namespace  Git {
        public class Repo : Object {
 
                Ggit.Repository  repo;
+               Callbacks callbacks;
 
                public Repo(string path)
                {
                        this.repo = Ggit.Repository.open(GLib.File.new_for_path(path));
+                       this.callbacks = new Callbacks(this);
                
                }
                public void test()
@@ -20,6 +22,7 @@ namespace  Git {
                        foreach(var n in ar) {
                                GLib.debug("got remote %s", n);
                                var r = this.repo.lookup_remote(n);
+                               r.connect(Ggit.Direction.FETCH, 
                        }
                
                }