Commit 0daf998de78b2484eefe47c15e883b7eef7b71a7

Edward Thomson 2015-04-27T16:31:18

config: use wildcard in test instead of empty expr

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/config/write.c b/tests/config/write.c
index a37669c..f497731 100644
--- a/tests/config/write.c
+++ b/tests/config/write.c
@@ -252,7 +252,7 @@ void test_config_write__overwrite_multivar_within_duplicate_header(void)
 	cl_git_pass(git_config_get_entry(&entry, cfg, entry_name));
 
 	/* Update that entry */
-	cl_git_pass(git_config_set_multivar(cfg, entry_name, "", "newurl"));
+	cl_git_pass(git_config_set_multivar(cfg, entry_name, ".*", "newurl"));
 
 	/* Reopen the file and make sure the entry was updated */
 	git_config_entry_free(entry);