sync
authorAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 09:11:36 +0000 (17:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 09:11:36 +0000 (17:11 +0800)
Git.vala

index 6e076b6..4645bb4 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -19,6 +19,8 @@ void main()
 
        Ggit.init();
        
+       var a = new GitLive.Repo("/home/alan/gitlive/gitlive");
+       /*
        var a = new GitLive.Repo("/home/alan/git/test1-clone");
        //a.fetchAll();
        var str = (new GLib.DateTime.now_utc()).format("%Y-%m-%d %H:%M:%S");
@@ -39,7 +41,7 @@ void main()
        
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
        a.repo.create_commit("HEAD", sig, sig, null, "test commit " + str, tree, parents);
-       
+       */
        // mmh.. no git add/commit in library...
 //     string[] spawn_args = {"git", "commit", "-m", "test", "-a"};
        //string[] spawn_env = Environ.get ();
@@ -138,7 +140,7 @@ namespace  GitLive {
                                }
                                        
                                var popts = new Ggit.PushOptions();
-                               //popts.callbacks = this.callbacks;
+                                popts.callbacks = this.callbacks;
                                GLib.debug("Push?");
                                r.upload(far,popts);
                                GLib.debug("Push done?");