summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index 491a9050ae..d29c733419 100644
--- a/config.c
+++ b/config.c
@@ -828,8 +828,11 @@ static int git_default_core_config(const char *var, const char *value)
int ret = git_config_string(&comment, var, value);
if (ret)
return ret;
+ else if (!strcasecmp(comment, "auto"))
+ auto_comment_line_char = 1;
else if (comment[0] && !comment[1]) {
comment_line_char = comment[0];
+ auto_comment_line_char = 0;
} else
return error("core.commentChar should only be one character");
return 0;