]> git.proxmox.com Git - libgit2.git/blobdiff - tests/mailmap/parsing.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / mailmap / parsing.c
index ba3b3a2f6dbf9a645d5027c49136eb210e284ed5..5ea470f34ac322e05dc29e606857c44ef8f02644 100644 (file)
@@ -103,15 +103,15 @@ void test_mailmap_parsing__string(void)
 
 void test_mailmap_parsing__windows_string(void)
 {
-       git_buf unixbuf = GIT_BUF_INIT;
-       git_buf winbuf = GIT_BUF_INIT;
+       git_str unixbuf = GIT_STR_INIT;
+       git_str winbuf = GIT_STR_INIT;
 
        /* Parse with windows-style line endings */
-       git_buf_attach_notowned(&unixbuf, string_mailmap, strlen(string_mailmap));
-       cl_git_pass(git_buf_lf_to_crlf(&winbuf, &unixbuf));
+       git_str_attach_notowned(&unixbuf, string_mailmap, strlen(string_mailmap));
+       cl_git_pass(git_str_lf_to_crlf(&winbuf, &unixbuf));
 
        cl_git_pass(git_mailmap_from_buffer(&g_mailmap, winbuf.ptr, winbuf.size));
-       git_buf_dispose(&winbuf);
+       git_str_dispose(&winbuf);
 
        /* We should have parsed all of the entries */
        check_mailmap_entries(g_mailmap, entries, ARRAY_SIZE(entries));