Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ee795 commit 95a52c7Copy full SHA for 95a52c7
tests/config/include.c
@@ -108,6 +108,23 @@ void test_config_include__missing(void)
108
git_config_free(cfg);
109
}
110
111
+void test_config_include__missing_homedir(void)
112
+{
113
+ git_config *cfg;
114
+ git_buf buf = GIT_BUF_INIT;
115
+
116
+ cl_git_mkfile("including", "[include]\npath = ~/.nonexistentfile\n[foo]\nbar = baz");
117
118
+ giterr_clear();
119
+ cl_git_pass(git_config_open_ondisk(&cfg, "including"));
120
+ cl_assert(giterr_last() == NULL);
121
+ cl_git_pass(git_config_get_string_buf(&buf, cfg, "foo.bar"));
122
+ cl_assert_equal_s("baz", git_buf_cstr(&buf));
123
124
+ git_buf_free(&buf);
125
+ git_config_free(cfg);
126
+}
127
128
#define replicate10(s) s s s s s s s s s s
129
void test_config_include__depth2(void)
130
{
0 commit comments