summaryrefslogtreecommitdiff
path: root/tests/test_helpers.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-06 18:08:13 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-06 18:08:13 +0200
commit858dba58bf6eaaf1293ec0da03a02f95f8f2e0b9 (patch)
tree2aca041ca299d93ce5add3a16485fe1a41d49469 /tests/test_helpers.c
parentb8e2db5f94d2a5d93bb4a328cbff5c26f65a5ebb (diff)
downloadlibgit2-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/test_helpers.c')
-rw-r--r--tests/test_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_helpers.c b/tests/test_helpers.c
index f2f37a1e4..d6c924212 100644
--- a/tests/test_helpers.c
+++ b/tests/test_helpers.c
@@ -227,7 +227,7 @@ int open_temp_repo(git_repository **repo, const char *path)
void close_temp_repo(git_repository *repo)
{
git_repository_free(repo);
- git_futils_rmdir_recurs(TEMP_REPO_FOLDER, 1);
+ git_futils_rmdir_r(TEMP_REPO_FOLDER, 1);
}
static int remove_placeholders_recurs(void *filename, char *path)