There was an error while loading. Please reload this page.
1 parent dfec726 commit ce72e39Copy full SHA for ce72e39
1 file changed
src/commit.c
@@ -149,6 +149,7 @@ int git_commit_create(
149
const git_oid **parent_oids;
150
151
assert(parent_count >= 0);
152
+ assert(git_object_owner((const git_object *)tree) == repo);
153
154
parent_oids = git__malloc(parent_count * sizeof(git_oid *));
155
GITERR_CHECK_ALLOC(parent_oids);
0 commit comments