Git.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 04:34:24 +0000 (12:34 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 04:34:24 +0000 (12:34 +0800)
Git.vala

index bb12e3d..b4cc84c 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -234,7 +234,7 @@ namespace  GitLive {
                        var new_tree = this.repo.lookup(treeoid,typeof (Ggit.Tree))  as   Ggit.Tree;
                        
                        var parent = new_head.lookup() as Ggit.Commit;
-                       Ggit.Commit[] parents =  Ggit.Commit[] { parent };
+                       Ggit.Commit[] parents =  new Ggit.Commit[] { parent };
                        
                        this.repo.create_commit(this.head.get_name(), sig, sig, null, "Test Merge", new_tree, parents);