Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Pull does not respect core.autocrlf #1830

Open
@winstliu

Description

@winstliu

Prerequisites

Description

github:pull appears to disregard the core.autocrlf setting. git config core.autocrlf returns false, yet when I pull LF files that have been changed on the remote, they are (wrongfully) converted to CRLF and (rightfully) marked as modified by the Tree View, but not by the github package. The same issue does not occur when executing git pull from the command line. This is on Windows 10 x64.

Steps to Reproduce

While I have not tried these steps, I am fairly confident that they should work:

  1. On a Windows machine, ensure that git config core.autocrlf returns false (set it if necessary).
  2. Push a file with LF line endings to GitHub.
  3. Edit that file on some other computer and push the changes to GitHub.
  4. Execute github:pull on the Windows computer.

Expected behavior: git reports 0 modified files.

Actual behavior: git reports 1 modified file, and the diff reveals that all line endings have been changed to CRLF.

Reproduces how often: 100%

Versions

Atom    : 1.35.0-dev-d036413c4
Electron: 2.0.14
Chrome  : 61.0.3163.100
Node    : 8.9.3

Windows 10 x64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions