Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/apply-avoid-over-reading'
[gitweb.git]
/
builtin
/
commit-tree.c
diff --git
a/builtin/commit-tree.c
b/builtin/commit-tree.c
index e1c17ba64b0346a35778dac48a66203418c119aa..a4a923d7c0b688e162c8e4d0411ff9b72748fb5c 100644
(file)
--- a/
builtin/commit-tree.c
+++ b/
builtin/commit-tree.c
@@
-59,7
+59,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;
}