Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21088

Normalize line endings in git repo

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It seems as there are files in the git repo with CRLF line endings, which causes changes by non-Windows users to show up as the entire file has changed (as the line ending will be converted to LF. This will also happen for Windows users with recommended git settings (core.autocrlf=true).
      This is not good as it makes it difficult to see what was actually changed.

      The git repo needs to be normalized on line endings (LF). Also, a .gitattributes file should be added to prevent the same problem from happen again.

      See:
      https://help.github.com/articles/dealing-with-line-endings
      http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/

        Attachments

          Activity

          ahammar Anders Hammar created issue -
          ahammar Anders Hammar made changes -
          Field Original Value New Value
          Assignee teilo [ teilo ] Anders Hammar [ ahammar ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 152950 ] JNJira + In-Review [ 194409 ]

            People

            Assignee:
            ahammar Anders Hammar
            Reporter:
            ahammar Anders Hammar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: