diff options
| author | Russell Belfer <rb@github.com> | 2013-10-08 16:59:59 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-10-08 16:59:59 -0700 |
| commit | 867f7c9b3329952dc0aebf9770019a7a01ff2691 (patch) | |
| tree | de119377901e57bcdd66b9e9ef4d395fb8f136a0 /tests-clar | |
| parent | 92dac975869bf6207eca0754345dc9aa7fec8992 (diff) | |
| download | libgit2-867f7c9b3329952dc0aebf9770019a7a01ff2691.tar.gz | |
Rename new fn to git_repository_reinit_filesystem
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/clar_libgit2.c | 2 | ||||
| -rw-r--r-- | tests-clar/diff/patch.c | 4 | ||||
| -rw-r--r-- | tests-clar/submodule/submodule_helpers.c | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/tests-clar/clar_libgit2.c b/tests-clar/clar_libgit2.c index 9f65953f5..50762cdb8 100644 --- a/tests-clar/clar_libgit2.c +++ b/tests-clar/clar_libgit2.c @@ -192,7 +192,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox) cl_git_pass(git_repository_open(&_cl_repo, sandbox)); /* Adjust configs after copying to new filesystem */ - cl_git_pass(git_repository_reset_filesystem(_cl_repo, 0)); + cl_git_pass(git_repository_reinit_filesystem(_cl_repo, 0)); return _cl_repo; } diff --git a/tests-clar/diff/patch.c b/tests-clar/diff/patch.c index 1dbfc9ac5..171abc819 100644 --- a/tests-clar/diff/patch.c +++ b/tests-clar/diff/patch.c @@ -240,7 +240,7 @@ void test_diff_patch__hunks_have_correct_line_numbers(void) git_repository_set_config(g_repo, cfg); git_config_free(cfg); - git_repository_reset_filesystem(g_repo, false); + git_repository_reinit_filesystem(g_repo, false); cl_git_pass( git_futils_readbuffer(&old_content, "renames/songof7cities.txt")); @@ -524,7 +524,7 @@ void test_diff_patch__line_counts_with_eofnl(void) git_repository_set_config(g_repo, cfg); git_config_free(cfg); - git_repository_reset_filesystem(g_repo, false); + git_repository_reinit_filesystem(g_repo, false); cl_git_pass(git_futils_readbuffer(&content, "renames/songof7cities.txt")); diff --git a/tests-clar/submodule/submodule_helpers.c b/tests-clar/submodule/submodule_helpers.c index cc3b7a2e3..d5750675c 100644 --- a/tests-clar/submodule/submodule_helpers.c +++ b/tests-clar/submodule/submodule_helpers.c @@ -4,6 +4,7 @@ #include "util.h" #include "posix.h" #include "submodule_helpers.h" +#include "git2/sys/repository.h" /* rewrite gitmodules -> .gitmodules * rewrite the empty or relative urls inside each module @@ -102,7 +103,7 @@ git_repository *setup_fixture_submodules(void) cl_set_cleanup(cleanup_fixture_submodules, "testrepo.git"); - cl_git_pass(git_repository_reset_filesystem(repo, 1)); + cl_git_pass(git_repository_reinit_filesystem(repo, 1)); return repo; } @@ -120,7 +121,7 @@ git_repository *setup_fixture_submod2(void) cl_set_cleanup(cleanup_fixture_submodules, "submod2_target"); - cl_git_pass(git_repository_reset_filesystem(repo, 1)); + cl_git_pass(git_repository_reinit_filesystem(repo, 1)); return repo; } |
