sequencer: convert fast_forward_to to struct object_id
[gitweb.git] / builtin / commit-tree.c
index 605017261c38dea1f5ada18c7d5b12446d6ea44f..f39c2b27375fcd70f050e56174b0966053652eef 100644 (file)
@@ -58,7 +58,7 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
                        if (get_sha1_commit(argv[i], oid.hash))
                                die("Not a valid object name %s", argv[i]);
                        assert_sha1_type(oid.hash, OBJ_COMMIT);
-                       new_parent(lookup_commit(oid.hash), &parents);
+                       new_parent(lookup_commit(&oid), &parents);
                        continue;
                }