Re: Line ending normalization doesn't work as expected
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Feb 16, 2018, 16:34 UTC
- Message-ID
- <20180216163422.GA2659@tor.lan>
- In-Reply-To
- <CAHd499CSe6d1SBaDYNRD9HXaWRJ9QYzmOCaBWFrV52UNRMVqhA@mail.gmail.com>
On Thu, Feb 15, 2018 at 09:24:40AM -0600, Robert Dailey wrote:
> On Tue, Oct 3, 2017 at 9:00 PM, Junio C Hamano <gitster@pobox.com> wrote:
[]
Show 5 quoted lines
> > Sorry to bring this old thread back to life, but I did notice that > this causes file modes to reset back to 644 (from 755) on Windows > version of Git. Is there a way to `$ git read-tree --empty && git add > .` without mucking with file permissions?
No problem with the delay, under the time we had the chance to improve Git:
Show 6 quoted lines
>Git 2.16 Release Notes >====================== >[] >* "git add --renormalize ." is a new and safer way to record the fact > that you are correcting the end-of-line convention and other > "convert_to_git()" glitches in the in-repository data.
Could you upgrade to Git 2.16.1 (or higher, just take the latest) and try with git add --renormalize . ?