]> git.proxmox.com Git - libgit2.git/commitdiff
fileops: replace integer usage with more explicit enum in some git_futils_rmdir_r...
authornulltoken <emeric.fermas@gmail.com>
Mon, 7 May 2012 15:04:06 +0000 (17:04 +0200)
committernulltoken <emeric.fermas@gmail.com>
Tue, 8 May 2012 08:05:22 +0000 (10:05 +0200)
tests-clar/repo/discover.c
tests-clar/repo/open.c

index 6b17d6dba24e8fa1c6af9bcb34125a7139c9d016..f1c08414655eb060d88c3e024f2e8af88317f234 100644 (file)
@@ -135,7 +135,7 @@ void test_repo_discover__0(void)
        ensure_repository_discover(REPOSITORY_ALTERNATE_FOLDER_SUB_SUB, ceiling_dirs, sub_repository_path);
        ensure_repository_discover(REPOSITORY_ALTERNATE_FOLDER_SUB_SUB_SUB, ceiling_dirs, repository_path);
 
-       cl_git_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, 1));
+       cl_git_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, GIT_DIRREMOVAL_FILES_AND_DIRS));
        git_repository_free(repo);
        git_buf_free(&ceiling_dirs_buf);
 }
index 91443e8aef68b1f7ce088bf041d588c1525515f1..292466390e5615cb9cb1930b1f3eaa773afeb178 100644 (file)
@@ -7,7 +7,7 @@ void test_repo_open__cleanup(void)
        cl_git_sandbox_cleanup();
 
        if (git_path_isdir("alternate"))
-               git_futils_rmdir_r("alternate", 1);
+               git_futils_rmdir_r("alternate", GIT_DIRREMOVAL_FILES_AND_DIRS);
 }
 
 void test_repo_open__bare_empty_repo(void)
@@ -202,8 +202,8 @@ void test_repo_open__bad_gitlinks(void)
                cl_git_fail(git_repository_open_ext(&repo, "alternate", 0, NULL));
        }
 
-       git_futils_rmdir_r("invalid", 1);
-       git_futils_rmdir_r("invalid2", 1);
+       git_futils_rmdir_r("invalid", GIT_DIRREMOVAL_FILES_AND_DIRS);
+       git_futils_rmdir_r("invalid2", GIT_DIRREMOVAL_FILES_AND_DIRS);
 }
 
 #ifdef GIT_WIN32