diff options
Diffstat (limited to 'tests-clar/stash/drop.c')
-rw-r--r-- | tests-clar/stash/drop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests-clar/stash/drop.c b/tests-clar/stash/drop.c index 9d1aeda70..c146e90ec 100644 --- a/tests-clar/stash/drop.c +++ b/tests-clar/stash/drop.c @@ -91,13 +91,13 @@ void test_stash_drop__dropping_an_entry_rewrites_reflog_history(void) push_three_states(); cl_git_pass(git_reference_lookup(&stash, repo, "refs/stash")); - + cl_git_pass(git_reflog_read(&reflog, stash)); entry = git_reflog_entry_byindex(reflog, 1); - git_oid_cpy(&oid, git_reflog_entry_oidold(entry)); + git_oid_cpy(&oid, git_reflog_entry_id_old(entry)); count = git_reflog_entrycount(reflog); - + git_reflog_free(reflog); cl_git_pass(git_stash_drop(repo, 1)); @@ -105,8 +105,8 @@ void test_stash_drop__dropping_an_entry_rewrites_reflog_history(void) cl_git_pass(git_reflog_read(&reflog, stash)); entry = git_reflog_entry_byindex(reflog, 0); - cl_assert_equal_i(0, git_oid_cmp(&oid, git_reflog_entry_oidold(entry))); - cl_assert_equal_i(count - 1, git_reflog_entrycount(reflog)); + cl_assert_equal_i(0, git_oid_cmp(&oid, git_reflog_entry_id_old(entry))); + cl_assert_equal_sz(count - 1, git_reflog_entrycount(reflog)); git_reflog_free(reflog); |