diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-05-06 23:51:25 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-05-07 23:42:56 +0400 |
commit | a4b75dcf56bc8e6d295cae89e2f5871c4707af21 (patch) | |
tree | 1024da87132452386ab7bbe9ee826457727596d2 /tests-clar/config | |
parent | 3405f78754703948475b4677d03fcdbfb099b6a4 (diff) |
repo: unconditionally create a global config backend
When a repository is initialised, we need to probe to see if there is
a global config to load. If this is not the case, the user isn't able
to write to the global config without creating the backend and adding
it themselves, which is inconvenient and overly complex.
Unconditionally create and add a backend for the global config file
regardless of whether it exists as a convenience for users.
To enable this, we allow creating backends to files that do not exist
yet, changing the semantics somewhat, and making some tests invalid.
Diffstat (limited to 'tests-clar/config')
-rw-r--r-- | tests-clar/config/read.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests-clar/config/read.c b/tests-clar/config/read.c index c85826886..9f943d0f6 100644 --- a/tests-clar/config/read.c +++ b/tests-clar/config/read.c @@ -449,10 +449,3 @@ void test_config_read__can_load_and_parse_an_empty_config_file(void) git_config_free(cfg); } - -void test_config_read__cannot_load_a_non_existing_config_file(void) -{ - git_config *cfg; - - cl_assert_equal_i(GIT_ENOTFOUND, git_config_open_ondisk(&cfg, "./no.config")); -} |