Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13599

Customer Request: Compare function will show a 500 error if there are any files in the branches which have mixed have mixed CRLF (Windows) and LF (Unix) line endings

    XMLWordPrintable

Details

    Description

      When trying to compare between 2 branches, if the branches contain files which have mixed CRLF (Windows) and LF (Unix) line endings, instead of showing the diff in the compare page, the page errors out instead. The different line endings seems to be confusing git when generating the diff and this throws out the error page. This looks to be a git bug which should be fixed on git 2.10.

      Example repo of where this issue is reproduced: Link

      Workaround:

      Make the line endings consistent in the affected files on the branches and push an update into the branches. Once that happens the diff (and merge) should work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vchoo Vivian C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: