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

index 11099fb..49ed6b2 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -28,7 +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<Ggit.Tree>(treeoid);
+       var tree = a.repo.lookup(treeoid);
        
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
        a.repo.create_commit("HEAD", sig, sig, null, "test commit " + str,