]> git.proxmox.com Git - libgit2.git/blobdiff - tests/refs/branches/create.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / refs / branches / create.c
index 70ffad88d241ffa9fd7fbfd5f282112fa5edf973..2fb11668b507b5b492afddd0662fcd7ade8cfdaf 100644 (file)
@@ -120,19 +120,19 @@ static void assert_branch_matches_name(
        const char *expected, const char *lookup_as)
 {
        git_reference *ref;
-       git_buf b = GIT_BUF_INIT;
+       git_str b = GIT_STR_INIT;
 
        cl_git_pass(git_branch_lookup(&ref, repo, lookup_as, GIT_BRANCH_LOCAL));
 
-       cl_git_pass(git_buf_sets(&b, "refs/heads/"));
-       cl_git_pass(git_buf_puts(&b, expected));
+       cl_git_pass(git_str_sets(&b, "refs/heads/"));
+       cl_git_pass(git_str_puts(&b, expected));
        cl_assert_equal_s(b.ptr, git_reference_name(ref));
 
        cl_git_pass(
                git_oid_cmp(git_reference_target(ref), git_commit_id(target)));
 
        git_reference_free(ref);
-       git_buf_dispose(&b);
+       git_str_dispose(&b);
 }
 
 void test_refs_branches_create__can_create_branch_with_unicode(void)
@@ -145,7 +145,7 @@ void test_refs_branches_create__can_create_branch_with_unicode(void)
        const char *expected[] = { nfc, nfd, emoji };
        unsigned int i;
        bool fs_decompose_unicode =
-               git_path_does_fs_decompose_unicode(git_repository_path(repo));
+               git_fs_path_does_decompose_unicode(git_repository_path(repo));
 
        retrieve_known_commit(&target, repo);