gnucash git line endings (CR/LF)?

John Ralls jralls at ceridwen.us
Mon Jul 1 11:47:37 EDT 2013


On Jul 1, 2013, at 8:09 AM, "Derek Atkins" <derek at ihtfp.com> wrote:

> 
> On Mon, July 1, 2013 10:44 am, Geert Janssens wrote:
> 
>> Christian also mentioned this problem last week (mail titled re: Github
>> repo on June 23rd).
> 
> I remembered seeing something about that a few weeks ago but I didn't mark
> the message and couldn't find it in a quick search.  I thought it had been
> solved, which is probably why I didn't pay close attention.
> 
>> The odd thing is I don't get this. I've run this sequence:
>> $ git clone --mirror ssh://git@code.gnucash.org/gnucash.git
>> ...
>> $ (cd gnucash.git; git fetch --all)
>> ... (no errors)
>> $ git clone --local -b trunk gnucash.git gnucash-trunk
>> Cloning into 'gnucash-trunk'...
>> done.
>> Checking out files: 100% (2582/2582), done.
>> 
>> $ cd gnucash-trunk/
>> $ git status
>> # On branch trunk
>> #
>> # Initial commit
>> #
>> nothing to commit (create/copy files and use "git add" to track)
> 
> Hmm..  I'm running the exact same sequence and I have the issue!
> That is odd!
> 
>> So as you can see, on my system these CRLF conversion errors are not
>> appearing. I have no idea what's different. I'm on Fedora 18, 32bit. I
>> have no config parameter set globally that relates in any way to crlf
>> (no core.autocrlf or any other parameter).
> 
> What are the contents of your ~/.gitconfig?  Mine are:
> 
> [user]
> 	name = Derek Atkins
> 	email = derek at ihtfp.com
> [alias]
> 	st = status
> [push]
> 	default = tracking
> [color]
> 	ui = auto

Geert probably has autocrlf=input in his ~/.gitconfig, and you should, too. See https://help.github.com/articles/dealing-with-line-endings#platform-all .

Regards,
John Ralls




More information about the gnucash-devel mailing list