diff options
author | Vicent Martà <vicent@github.com> | 2013-04-22 18:44:32 +0400 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-22 18:44:32 +0400 |
commit | a472f887fe8510bd972f8ce8bec6c9f53601aefb (patch) | |
tree | e9bc91e80f29479077b595aa138454e4a165063c /tests-clar/config | |
parent | f063a75882769cb6fc652de425ac16ba4b88b616 (diff) | |
parent | 1be680c4d0909ee5160292d7b56c4522c4bc309c (diff) |
Merge pull request #1493 from carlosmn/remotes
Revamp the refspec handling
Diffstat (limited to 'tests-clar/config')
-rw-r--r-- | tests-clar/config/multivar.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests-clar/config/multivar.c b/tests-clar/config/multivar.c index 26537e20a..0bda6bcec 100644 --- a/tests-clar/config/multivar.c +++ b/tests-clar/config/multivar.c @@ -97,6 +97,22 @@ void test_config_multivar__add(void) git_config_free(cfg); } +void test_config_multivar__add_new(void) +{ + const char *var = "a.brand.new"; + git_config *cfg; + int n; + + cl_git_pass(git_config_open_ondisk(&cfg, "config/config11")); + + cl_git_pass(git_config_set_multivar(cfg, var, "", "variable")); + n = 0; + cl_git_pass(git_config_get_multivar(cfg, var, NULL, cb, &n)); + cl_assert(n == 1); + + git_config_free(cfg); +} + void test_config_multivar__replace(void) { git_config *cfg; |