git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Regression (?) in core.safecrlf=false messaging

From
Torsten Bögershausen <tboegi@web.de>
Date
Jun 4, 2018, 19:15 UTC
Message-ID
<81c6709d-8f8d-9387-1649-6bdc80c30ae8@web.de>
In-Reply-To
<CA+dzEBn7cCey-LDa1Y-PUeFQs7JiucS30FFiLfw4sfu6ZX34JQ@mail.gmail.com>
On 04.06.18 17:43, Anthony Sottile wrote:
Show 39 quoted lines
> On Mon, Jun 4, 2018 at 12:55 AM, Torsten Bögershausen <tboegi@web.de> wrote:
>>
>> Does the following patch fix your problem ?
>>
>> diff --git a/config.c b/config.c
>> index 6f8f1d8c11..c625aec96a 100644
>> --- a/config.c
>> +++ b/config.c
>> @@ -1233,7 +1233,7 @@ static int git_default_core_config(const char *var, const char *value)
>>                 }
>>                 eol_rndtrp_die = git_config_bool(var, value);
>>                 global_conv_flags_eol = eol_rndtrp_die ?
>> -                       CONV_EOL_RNDTRP_DIE : CONV_EOL_RNDTRP_WARN;
>> +                       CONV_EOL_RNDTRP_DIE : 0;
>>                 return 0;
>>         }
>>
> 
> 
> Yes!  After applying that patch:
> 
> ```
> 
> $ PATH=$PWD/prefix/bin:$PATH bash test.sh
> + git --version
> git version 2.18.0.rc1.dirty
> + rm -rf repo
> + git init repo
> Initialized empty Git repository in /tmp/git/repo/.git/
> + cd repo
> + git config core.autocrlf input
> + git config core.safecrlf false
> + echo -en 'foo\r\nbar\r\n'
> + git add f
> 
> ```
> 
> Anthony
> 

Good. Do you want to send the patch to the list ? (You don't have too, if you don't want, but as you already did all the work...)

Previous: Anthony Sottile
Message 5 of 5 in “Regression (?) in core.safecrlf=false messaging”
  1. Anthony SottileJun 4, 2018
  2. Torsten BögershausenJun 4, 2018
  3. Torsten BögershausenJun 4, 2018
  4. Anthony SottileJun 4, 2018
  5. Torsten BögershausenJun 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.