Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin/read-tree: convert to struct object_id
[gitweb.git]
/
builtin
/
commit-tree.c
diff --git
a/builtin/commit-tree.c
b/builtin/commit-tree.c
index 605017261c38dea1f5ada18c7d5b12446d6ea44f..f39c2b27375fcd70f050e56174b0966053652eef 100644
(file)
--- a/
builtin/commit-tree.c
+++ b/
builtin/commit-tree.c
@@
-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;
}