diff options
author | Russell Belfer <rb@github.com> | 2013-05-05 08:01:18 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-05-05 08:01:18 -0700 |
commit | 3e96e3391cdce890e9030615fdb816301534accc (patch) | |
tree | eaeecb4f0f6e094111f38173372104805dd3fb6b /src/commit.c | |
parent | dfec726bbae0e699b78db8f1b63372134c8467a6 (diff) | |
parent | 467cbec73d1c34c3f6c1e7ea66e1276e5e44299b (diff) | |
download | libgit2-3e96e3391cdce890e9030615fdb816301534accc.tar.gz |
Merge pull request #1549 from nulltoken/fix/from_oids
Strict/lax commit API
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 46c02c292..3dc647c9b 100644 --- a/src/commit.c +++ b/src/commit.c @@ -96,7 +96,6 @@ int git_commit_create_from_oids( git_odb *odb; assert(oid && repo && tree && parent_count >= 0); - assert(git_object_owner((const git_object *)tree) == repo); git_oid__writebuf(&commit, "tree ", tree); @@ -149,6 +148,7 @@ int git_commit_create( const git_oid **parent_oids; assert(parent_count >= 0); + assert(git_object_owner((const git_object *)tree) == repo); parent_oids = git__malloc(parent_count * sizeof(git_oid *)); GITERR_CHECK_ALLOC(parent_oids); |