summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 11f76e30c..a1a5bf7f5 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -196,8 +196,9 @@ int git_commit__parse_buffer(git_commit *commit, void *data, size_t len)
if (git_commit__parse_oid(&oid, &buffer, buffer_end, "tree ") < 0)
return GIT_EOBJCORRUPTED;
+ commit->tree = git_tree_lookup(commit->object.pool, &oid);
+
/*
- * TODO: load tree into commit object
* TODO: commit grafts!
*/