diff options
Diffstat (limited to 'tests/notes')
-rw-r--r-- | tests/notes/notes.c | 4 | ||||
-rw-r--r-- | tests/notes/notesref.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/notes/notes.c b/tests/notes/notes.c index af9686790..dd9ad1e4b 100644 --- a/tests/notes/notes.c +++ b/tests/notes/notes.c @@ -1,7 +1,5 @@ #include "clar_libgit2.h" -#include "buffer.h" - static git_repository *_repo; static git_signature *_sig; @@ -282,7 +280,7 @@ void test_notes_notes__inserting_a_note_without_passing_a_namespace_uses_the_def create_note(¬e_oid, NULL, "08b041783f40edfe12bb406c9c9a8a040177c125", "hello world\n"); cl_git_pass(git_note_read(¬e, _repo, NULL, &target_oid)); - cl_git_pass(git_note_read(&default_namespace_note, _repo, git_buf_cstr(&default_ref), &target_oid)); + cl_git_pass(git_note_read(&default_namespace_note, _repo, default_ref.ptr, &target_oid)); assert_note_equal(note, "hello world\n", ¬e_oid); assert_note_equal(default_namespace_note, "hello world\n", ¬e_oid); diff --git a/tests/notes/notesref.c b/tests/notes/notesref.c index 3bcb05f20..6ba324c76 100644 --- a/tests/notes/notesref.c +++ b/tests/notes/notesref.c @@ -1,7 +1,6 @@ #include "clar_libgit2.h" #include "notes.h" -#include "buffer.h" static git_repository *_repo; static git_note *_note; @@ -57,7 +56,7 @@ void test_notes_notesref__config_corenotesref(void) cl_git_pass(git_note_default_ref(&default_ref, _repo)); cl_assert_equal_s("refs/notes/mydefaultnotesref", default_ref.ptr); - git_buf_clear(&default_ref); + git_buf_dispose(&default_ref); cl_git_pass(git_config_delete_entry(_cfg, "core.notesRef")); |