diff options
Diffstat (limited to 'tests/checkout/checkout_helpers.c')
-rw-r--r-- | tests/checkout/checkout_helpers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/checkout/checkout_helpers.c b/tests/checkout/checkout_helpers.c index 95af5d396..1e9c21bdc 100644 --- a/tests/checkout/checkout_helpers.c +++ b/tests/checkout/checkout_helpers.c @@ -7,16 +7,16 @@ void assert_on_branch(git_repository *repo, const char *branch) { git_reference *head; - git_buf bname = GIT_BUF_INIT; + git_str bname = GIT_STR_INIT; cl_git_pass(git_reference_lookup(&head, repo, GIT_HEAD_FILE)); cl_assert_(git_reference_type(head) == GIT_REFERENCE_SYMBOLIC, branch); - cl_git_pass(git_buf_joinpath(&bname, "refs/heads", branch)); + cl_git_pass(git_str_joinpath(&bname, "refs/heads", branch)); cl_assert_equal_s(bname.ptr, git_reference_symbolic_target(head)); git_reference_free(head); - git_buf_dispose(&bname); + git_str_dispose(&bname); } void reset_index_to_treeish(git_object *treeish) |