]> git.proxmox.com Git - libgit2.git/blobdiff - tests/checkout/checkout_helpers.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / checkout / checkout_helpers.c
index 95af5d3964c188e79f2847fc1fad8ee9566460e5..1e9c21bdc5c01f8f5e250ec652c7f5dfbaa35a3b 100644 (file)
@@ -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)