Commit 300ea75439b394ec49d0c1fa52997bafe208fa58

Stefan Sperling 2021-01-05T15:28:52

silence a printf in our gitconfig parser; this code shouldn't print to stdout

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/gitconfig.c b/lib/gitconfig.c
index c4d930b..9b99340 100644
--- a/lib/gitconfig.c
+++ b/lib/gitconfig.c
@@ -177,8 +177,9 @@ conf_set_now(struct got_gitconfig *conf, char *section, char *tag,
 		conf_remove_now(conf, section, tag);
 	else if (got_gitconfig_get_str(conf, section, tag)) {
 		if (!is_default)
-			log_print("conf_set_now: duplicate tag [%s]:%s, "
-			    "ignoring...\n", section, tag);
+			LOG_DBG((LOG_MISC,
+			    "conf_set_now: duplicate tag [%s]:%s, "
+			    "ignoring...\n", section, tag));
 		return 1;
 	}
 	node = calloc(1, sizeof *node);