]> git.proxmox.com Git - libgit2.git/blobdiff - tests/submodule/status.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / submodule / status.c
index 06595cc9aa2d86e227314a86b375974e72b54ce4..1d41337b7c3f11e531342e899ace8f2ca8d886e7 100644 (file)
@@ -31,10 +31,10 @@ void test_submodule_status__unchanged(void)
 
 static void rm_submodule(const char *name)
 {
-       git_buf path = GIT_BUF_INIT;
-       cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), name));
+       git_str path = GIT_STR_INIT;
+       cl_git_pass(git_str_joinpath(&path, git_repository_workdir(g_repo), name));
        cl_git_pass(git_futils_rmdir_r(path.ptr, NULL, GIT_RMDIR_REMOVE_FILES));
-       git_buf_dispose(&path);
+       git_str_dispose(&path);
 }
 
 static void add_submodule_to_index(const char *name)