diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2014-02-09 12:37:16 -0800 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2014-02-09 13:45:38 -0800 |
| commit | f77127da12480c65caaddd2af655877978d1f5a7 (patch) | |
| tree | a744a786718e867306f5e2ba0ecc7e5b4c6a1796 /tests/clar_libgit2.c | |
| parent | fb6f4539d1de1f2c171d6be2e088b5b763f3e5f8 (diff) | |
| download | libgit2-f77127da12480c65caaddd2af655877978d1f5a7.tar.gz | |
Tests for core.autocrlf and .gitattributes
Diffstat (limited to 'tests/clar_libgit2.c')
| -rw-r--r-- | tests/clar_libgit2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/clar_libgit2.c b/tests/clar_libgit2.c index 9a37ee4c1..9b062ef78 100644 --- a/tests/clar_libgit2.c +++ b/tests/clar_libgit2.c @@ -420,6 +420,14 @@ int cl_repo_get_bool(git_repository *repo, const char *cfg) return val; } +void cl_repo_set_string(git_repository *repo, const char *cfg, const char *value) +{ + git_config *config; + cl_git_pass(git_repository_config(&config, repo)); + cl_git_pass(git_config_set_string(config, cfg, value)); + git_config_free(config); +} + /* this is essentially the code from git__unescape modified slightly */ static size_t strip_cr_from_buf(char *start, size_t len) { |
