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

index 61013c2..957eff7 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -232,7 +232,7 @@ namespace  GitLive {
                        var treeoid = ix.write_tree();
 
                        var new_tree = this.repo.lookup(treeoid,typeof (Ggit.Tree))  as   Ggit.Tree;
-                       this.repo.create_commit("HEAD", sig, sig, null, "Test Merge", new_tree, parents);
+                       this.repo.create_commit(this.head.get_name(), sig, sig, null, "Test Merge", new_tree, parents);
         
                
                }