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

index f67ab2c..0fc076b 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -35,7 +35,7 @@ void main()
                new Ggit.Commit[] {} :
                new Ggit.Commit[] { parent };
 
-       var tree = a.repo.lookup<Ggit.Tree>(treeoid)// odd format.. 
+       var tree = a.repo.lookup<Ggit.Tree>(treeoid)  as   Ggit.Tree;// odd format.. 
        
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
        a.repo.create_commit("HEAD", sig, sig, null, "test commit " + str, tree, parents);