diff options
author | Alan Rogers <alan@github.com> | 2014-06-04 15:36:28 -0700 |
---|---|---|
committer | Alan Rogers <alan@github.com> | 2014-06-04 15:36:28 -0700 |
commit | dc49e1b5b368b4b7d5b8ae8a0a12027f86395cad (patch) | |
tree | 6335b980e9ff7688d758e411088838b6adb75baa /tests/clar_libgit2.c | |
parent | 54c02d212d70b439f402c74c6b1f6c835daa43fc (diff) | |
parent | 90befde4a1938641dfdb9a7bdb9f361d1de5c26f (diff) | |
download | libgit2-dc49e1b5b368b4b7d5b8ae8a0a12027f86395cad.tar.gz |
Merge remote-tracking branch 'origin/development' into fix-git-status-list-new-unreadable-folder
Conflicts:
include/git2/diff.h
Diffstat (limited to 'tests/clar_libgit2.c')
-rw-r--r-- | tests/clar_libgit2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/clar_libgit2.c b/tests/clar_libgit2.c index b2730f4d1..0a4c3e8e5 100644 --- a/tests/clar_libgit2.c +++ b/tests/clar_libgit2.c @@ -518,3 +518,16 @@ void cl_fake_home(void) GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_GLOBAL, path.ptr)); git_buf_free(&path); } + +void cl_sandbox_set_search_path_defaults(void) +{ + const char *sandbox_path = clar_sandbox_path(); + + git_libgit2_opts( + GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_GLOBAL, sandbox_path); + git_libgit2_opts( + GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_XDG, sandbox_path); + git_libgit2_opts( + GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_SYSTEM, sandbox_path); +} + |