Commit d52a93fa by Linquize

Add test case to test ']' and '\\' characters in config subsection

parent 566dd8ce
...@@ -164,6 +164,13 @@ void test_config_read__empty_files(void) ...@@ -164,6 +164,13 @@ void test_config_read__empty_files(void)
git_config_free(cfg); git_config_free(cfg);
} }
void test_config_read__symbol_headers(void)
{
git_config *cfg;
cl_git_pass(git_config_open_ondisk(&cfg, cl_fixture("config/config20")));
git_config_free(cfg);
}
void test_config_read__header_in_last_line(void) void test_config_read__header_in_last_line(void)
{ {
git_config *cfg; git_config *cfg;
......
[valid "[subsection]"]
something = a
; we don't allow anything after closing "
[sec "[subsec]/child"]
parent = grand
[sec2 "[subsec2]/child2"]
type = dvcs
[sec3 "escape\"quote"]
vcs = git
[sec4 "escaping\\slash"]
lib = git2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment