Git.vala
authorAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:50:22 +0000 (15:50 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:50:22 +0000 (15:50 +0800)
Git.vala

index 9be86dd..11099fb 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -24,14 +24,14 @@ void main()
        var str = (new GLib.DateTime.now_utc()).format("%Y-%m-%d %H:%M:%S");
        GLib.FileUtils.set_contents("/home/alan/git/test1-clone/test1",  str); 
        
-       var ix = a.repo.repo.get_index();
+       var ix = a.repo.get_index();
        ix.add_path("test1");
        ix.write();
        var treeoid = index.write_tree();
-       var tree = a.repo.repo.lookup<Ggit.Tree>(treeoid);
+       var tree = a.repo.lookup<Ggit.Tree>(treeoid);
        
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
-       a.repo.repo.create_commit("HEAD", sig, sig, null, "test commit " + str, 
+       a.repo.create_commit("HEAD", sig, sig, null, "test commit " + str, 
        // mmh.. no git add/commit in library...
        string[] spawn_args = {"git", "commit", "-m", "test", "-a"};
        string[] spawn_env = Environ.get ();