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

Normalize line endings in git repo

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: m2release-plugin
    • Labels:
      None
    • Environment:
      n/a
    • 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

            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: