diff options
author | Russell Belfer <rb@github.com> | 2013-09-05 03:41:34 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-05 03:41:34 +0400 |
commit | 9ce4f7da4a69b3853da587b67e8f137ddf036e4c (patch) | |
tree | 24667c3921a778424d52e3036168afbbcaa4ad8b /tests-clar/clar_libgit2.c | |
parent | 2a54c7f447acfc74368a766369a9923ecdf19b21 (diff) |
Fix tests to use core.filemode correctly
Some windows tests were failing
Diffstat (limited to 'tests-clar/clar_libgit2.c')
-rw-r--r-- | tests-clar/clar_libgit2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests-clar/clar_libgit2.c b/tests-clar/clar_libgit2.c index bf35a68eb..340943ca8 100644 --- a/tests-clar/clar_libgit2.c +++ b/tests-clar/clar_libgit2.c @@ -344,3 +344,13 @@ void cl_repo_set_bool(git_repository *repo, const char *cfg, int value) cl_git_pass(git_config_set_bool(config, cfg, value != 0)); git_config_free(config); } + +int cl_repo_get_bool(git_repository *repo, const char *cfg) +{ + int val = 0; + git_config *config; + cl_git_pass(git_repository_config(&config, repo)); + cl_git_pass(git_config_get_bool(&val, config, cfg));; + git_config_free(config); + return val; +} |