summaryrefslogtreecommitdiff
path: root/tests/notes/notes.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/notes/notes.c')
-rw-r--r--tests/notes/notes.c4
1 files changed, 1 insertions, 3 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(&note_oid, NULL, "08b041783f40edfe12bb406c9c9a8a040177c125", "hello world\n");
cl_git_pass(git_note_read(&note, _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", &note_oid);
assert_note_equal(default_namespace_note, "hello world\n", &note_oid);