+1

Users should also beware that working on a repo in Windows in an IDE can
cause the file to take on a pile of Windows line endings which git then
pushes. This has happened to me elsewhere. Maybe this fix takes care of it.

On Fri, May 24, 2019, 00:28 Alex Herbert <alex.d.herb...@gmail.com> wrote:

> The recent PR to add a new module to statistics may have suffered from
> problems with converting line endings.
>
> This can be solved by having Windows users run this (optionally with
> --global):
>
> > git config core.autocrlf true
>
> But a better fix [1] is to add a .gitattributes file [2] containing:
>
> * text=auto
>
> The fix then applies to anyone using the repo irrespective of their own
> git global config.
>
> [1] https://www.edwardthomson.com/blog/git_for_windows_line_endings.html <
> https://www.edwardthomson.com/blog/git_for_windows_line_endings.html>
> [2] https://git-scm.com/docs/gitattributes <
> https://git-scm.com/docs/gitattributes>
>
> Any objections to modifying the repo to have this configuration file?
>
> Alex
>
>

Reply via email to