diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-23 14:39:53 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-12-09 15:55:11 +0100 |
commit | f21051297cc698644ea0dc9c7122ec944dba2863 (patch) | |
tree | b94a20b868860f84c5a674bbada254e789f4e43a /tests/refs | |
parent | 8d5ec9106afbca346a8def84ef20de0a7ba2240a (diff) | |
download | libgit2-f21051297cc698644ea0dc9c7122ec944dba2863.tar.gz |
refs: expose has_log() on the backend
The frontend used to look at the file directly, but that's obviously not
the right thing to do. Expose it on the backend and use that function
instead.
Diffstat (limited to 'tests/refs')
-rw-r--r-- | tests/refs/reflog/reflog.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/refs/reflog/reflog.c b/tests/refs/reflog/reflog.c index 9f414f21d..a1c5adaf4 100644 --- a/tests/refs/reflog/reflog.c +++ b/tests/refs/reflog/reflog.c @@ -127,13 +127,7 @@ void test_refs_reflog_reflog__renaming_the_reference_moves_the_reflog(void) static void assert_has_reflog(bool expected_result, const char *name) { - git_reference *ref; - - cl_git_pass(git_reference_lookup(&ref, g_repo, name)); - - cl_assert_equal_i(expected_result, git_reference_has_log(ref)); - - git_reference_free(ref); + cl_assert_equal_i(expected_result, git_reference_has_log(g_repo, name)); } void test_refs_reflog_reflog__reference_has_reflog(void) |