Skip to content

CRLF eols start diffing right after cloning the repo #304

Closed
@leobalter

Description

@leobalter

I just cloned this repo and got diff from files with CRLF.

The same kind of issue happened to me in jquery/jquery-migrate#66.

[~/dev]
$ git clone https://github.com/jquery/jquery-wp-content.git
Cloning into 'jquery-wp-content'...
remote: Reusing existing pack: 9459, done.
remote: Total 9459 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (9459/9459), 11.30 MiB | 210.00 KiB/s, done.
Resolving deltas: 100% (4438/4438), done.
Checking connectivity... done
[~/dev]
$ cd jquery-wp-content/
[~/dev/jquery-wp-content] (master)⚡
$ git st
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   plugins/allow-numeric-stubs/allow-numeric-stubs.php
#   modified:   plugins/allow-numeric-stubs/readme.txt
#   modified:   themes/jquery/404.php
#   modified:   themes/jquery/archive.php
#   modified:   themes/jquery/author.php
#   modified:   themes/jquery/category.php
#   modified:   themes/jquery/content-single.php
#   modified:   themes/jquery/image.php
#   modified:   themes/jquery/index.php
#   modified:   themes/jquery/license.txt
#   modified:   themes/jquery/page.php
#   modified:   themes/jquery/readme.txt
#   modified:   themes/jquery/search.php
#   modified:   themes/jquery/sidebar-footer.php
#   modified:   themes/jquery/sidebar-page.php
#   modified:   themes/jquery/tag.php
#   modified:   themes/meetings.jquery.org/content-single.php
#   modified:   wp-config-sample.php
#
no changes added to commit (use "git add" and/or "git commit -a")
[~/dev/jquery-wp-content] (master)⚡
$ git diff
warning: CRLF will be replaced by LF in plugins/allow-numeric-stubs/allow-numeric-stubs.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in plugins/allow-numeric-stubs/readme.txt.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/404.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/archive.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/author.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/category.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/content-single.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/image.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/index.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/license.txt.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/page.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/readme.txt.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/search.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/sidebar-footer.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/sidebar-page.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/jquery/tag.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in themes/meetings.jquery.org/content-single.php.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in wp-config-sample.php.
The file will have its original line endings in your working directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions