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

index 49ed6b2..90c3ebf 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -28,8 +28,8 @@ void main()
        ix.add_path("test1");
        ix.write();
        var treeoid = index.write_tree();
-       //var tree = a.repo.lookup<Ggit.Tree>(treeoid);
-       var tree = a.repo.lookup(treeoid);
+
+       var tree = a.repo.lookup<Ggit.Tree>(treeoid); // odd format.. 
        
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
        a.repo.create_commit("HEAD", sig, sig, null, "test commit " + str,