diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-07-06 18:08:13 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-06 18:08:13 +0200 |
| commit | 858dba58bf6eaaf1293ec0da03a02f95f8f2e0b9 (patch) | |
| tree | 2aca041ca299d93ce5add3a16485fe1a41d49469 /tests/t12-repo.c | |
| parent | b8e2db5f94d2a5d93bb4a328cbff5c26f65a5ebb (diff) | |
| download | libgit2-858dba58bf6eaaf1293ec0da03a02f95f8f2e0b9.tar.gz | |
refs: Cleanup reference renaming
`git_futils_rmdir_r`: rename, clean up.
`git_reference_rename`: cleanup. Do not use 3x4096 buffers on the stack
or things will get ugly very fast. We can reuse the same buffer.
Diffstat (limited to 'tests/t12-repo.c')
| -rw-r--r-- | tests/t12-repo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/t12-repo.c b/tests/t12-repo.c index e1726e07c..e8a7784c2 100644 --- a/tests/t12-repo.c +++ b/tests/t12-repo.c @@ -141,13 +141,13 @@ static int ensure_repository_init( goto cleanup; git_repository_free(repo); - git_futils_rmdir_recurs(working_directory, 1); + git_futils_rmdir_r(working_directory, 1); return GIT_SUCCESS; cleanup: git_repository_free(repo); - git_futils_rmdir_recurs(working_directory, 1); + git_futils_rmdir_r(working_directory, 1); return GIT_ERROR; } @@ -193,7 +193,7 @@ BEGIN_TEST(init2, "Initialize and open a bare repo with a relative path escaping git_repository_free(repo); must_pass(chdir(current_workdir)); - must_pass(git_futils_rmdir_recurs(TEMP_REPO_FOLDER, 1)); + must_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, 1)); END_TEST #define EMPTY_BARE_REPOSITORY_NAME "empty_bare.git" @@ -210,7 +210,7 @@ BEGIN_TEST(open0, "Open a bare repository that has just been initialized by git" must_be_true(git_repository_path(repo, GIT_REPO_PATH_WORKDIR) == NULL); git_repository_free(repo); - must_pass(git_futils_rmdir_recurs(TEMP_REPO_FOLDER, 1)); + must_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, 1)); END_TEST #define SOURCE_EMPTY_REPOSITORY_NAME "empty_standard_repo/.gitted" @@ -229,7 +229,7 @@ BEGIN_TEST(open1, "Open a standard repository that has just been initialized by must_be_true(git_repository_path(repo, GIT_REPO_PATH_WORKDIR) != NULL); git_repository_free(repo); - must_pass(git_futils_rmdir_recurs(TEMP_REPO_FOLDER, 1)); + must_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, 1)); END_TEST @@ -257,7 +257,7 @@ BEGIN_TEST(open2, "Open a bare repository with a relative path escaping out of t git_repository_free(repo); must_pass(chdir(current_workdir)); - must_pass(git_futils_rmdir_recurs(TEMP_REPO_FOLDER, 1)); + must_pass(git_futils_rmdir_r(TEMP_REPO_FOLDER, 1)); END_TEST BEGIN_TEST(empty0, "test if a repository is empty or not") @@ -446,7 +446,7 @@ BEGIN_TEST(discover0, "test discover") must_pass(ensure_repository_discover(REPOSITORY_ALTERNATE_FOLDER_SUB_SUB, ceiling_dirs, sub_repository_path)); must_pass(ensure_repository_discover(REPOSITORY_ALTERNATE_FOLDER_SUB_SUB_SUB, ceiling_dirs, repository_path)); - must_pass(git_futils_rmdir_recurs(DISCOVER_FOLDER, 1)); + must_pass(git_futils_rmdir_r(DISCOVER_FOLDER, 1)); git_repository_free(repo); END_TEST |
