aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-06 14:27:36 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-06 14:27:36 -0700
commit7dcbf891d975eba5b1e3095cb3b389834689ac09 (patch)
treea7366f7f120101529b906c01a97834a33c5608e2 /config.c
parent05781d37fa43b5dada77d1bcfd4cdc42742e7421 (diff)
parentcaa47adc5a68045bfb9e88fcfee0e50589d129df (diff)
downloadgit-7dcbf891d975eba5b1e3095cb3b389834689ac09.tar.gz
git-7dcbf891d975eba5b1e3095cb3b389834689ac09.tar.xz
Merge branch 'tb/core-eol-fix' into maint
A couple of bugs around core.autocrlf have been fixed. * tb/core-eol-fix: convert.c: ident + core.autocrlf didn't work t0027: test cases for combined attributes convert: allow core.autocrlf=input and core.eol=crlf t0027: make commit_chk_wrnNNO() reliable
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/config.c b/config.c
index adf12a17e..6dbc8a409 100644
--- a/config.c
+++ b/config.c
@@ -803,8 +803,6 @@ static int git_default_core_config(const char *var, const char *value)
if (!strcmp(var, "core.autocrlf")) {
if (value && !strcasecmp(value, "input")) {
- if (core_eol == EOL_CRLF)
- return error("core.autocrlf=input conflicts with core.eol=crlf");
auto_crlf = AUTO_CRLF_INPUT;
return 0;
}
@@ -830,8 +828,6 @@ static int git_default_core_config(const char *var, const char *value)
core_eol = EOL_NATIVE;
else
core_eol = EOL_UNSET;
- if (core_eol == EOL_CRLF && auto_crlf == AUTO_CRLF_INPUT)
- return error("core.autocrlf=input conflicts with core.eol=crlf");
return 0;
}