diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-20 11:00:12 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-20 11:00:12 +0100 |
commit | 60a194aa86d54ffb55c1abff8d0ef05647f936e8 (patch) | |
tree | f8312c890d8a5862d1d3ee705fe97fc0778f1bb2 /tests/diff | |
parent | ec5a43b60ab0dfcb42db8101edfca34be3d62947 (diff) | |
download | libgit2-60a194aa86d54ffb55c1abff8d0ef05647f936e8.tar.gz |
tree: re-use the id and filename in the odb object
Instead of copying over the data into the individual entries, point to
the originals, which are already in a format we can use.
Diffstat (limited to 'tests/diff')
-rw-r--r-- | tests/diff/iterator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/diff/iterator.c b/tests/diff/iterator.c index 8417e8ed4..25a23eda7 100644 --- a/tests/diff/iterator.c +++ b/tests/diff/iterator.c @@ -268,7 +268,7 @@ static void check_tree_entry( cl_git_pass(git_iterator_current_tree_entry(&te, i)); cl_assert(te); - cl_assert(git_oid_streq(&te->oid, oid) == 0); + cl_assert(git_oid_streq(te->oid, oid) == 0); cl_git_pass(git_iterator_current(&ie, i)); cl_git_pass(git_buf_sets(&path, ie->path)); |