From: Torsten Bögershausen Date: Fri, 16 Feb 2018 16:34:22 GMT Subject: Re: Line ending normalization doesn't work as expected Message-ID: <20180216163422.GA2659@tor.lan> In-Reply-To: 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 wrote: [] > > 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: >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 . ?