Git.vala
authorAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:27:37 +0000 (15:27 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:27:37 +0000 (15:27 +0800)
Git.vala

index 30445e1..883999c 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -18,8 +18,12 @@ void main()
          ); 
 
        Ggit.init();
-       var a = new GitLive.Repo("/home/alan/gitlive/gitlive");
+       
+       var a = new GitLive.Repo("/home/alan/git/test2");
        //a.fetchAll();
+       GLib.FileUtils.set_contents("/home/alan/git/test2/test1", 
+               GLib.DateTime.now_utc().format("%Y-%m-%d %H:%M:%S")
+       );
        a.pushAll();
 }