Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications about composer.json and CRLF #472

Closed
Deele opened this issue May 11, 2015 · 3 comments
Closed

Notifications about composer.json and CRLF #472

Deele opened this issue May 11, 2015 · 3 comments

Comments

@Deele
Copy link

Deele commented May 11, 2015

I just downloaded full version of cmder and ran it.

After executing any command, I get notification at the end of executed command real output:

warning: LF will be replaced by CRLF in composer.json.
The file will have its original line endings in your working directory.

For example:

C:\Users\Deele
λ cd /d M:\WebDev\projects\eilc\tests\

warning: LF will be replaced by CRLF in composer.json.
The file will have its original line endings in your working directory.
M:\WebDev\projects\eilc\tests (master)
λ ls -la
total 9
drwxr-xr-x    1 Deele     Administ     4096 May 10 02:29 .
drwxr-xr-x    1 Deele     Administ     4096 May 10 01:53 ..
-rw-r--r--    1 Deele     Administ     3752 May  9 22:10 README.md
drwxr-xr-x    1 Deele     Administ     4096 May 10 02:17 codeception
-rw-r--r--    1 Deele     Administ      987 May 10 02:29 codeception.yml

warning: LF will be replaced by CRLF in composer.json.
The file will have its original line endings in your working directory.

I don't understand that warning: what "composer.json" file is it talking about? what is my working directory? why is it warning every time I do something? did I do something wrong?

@Jackbennett
Copy link
Contributor

Its git warning about line endings your file uses. This is a problem when using files between linux and windows. Have a read of githubs advice.

What is gits current setting if you run git config --get-all core.autocrlf? Mine is set to true but I use my own installed git not cmders full verison.

@Deele
Copy link
Author

Deele commented May 11, 2015

What are you talking about? Is cmder conflicting with git that is installed on my system?

The output of git config --get-all core.autocrlf command:

λ git config --get-all core.autocrlf
true
true

warning: LF will be replaced by CRLF in composer.json.
The file will have its original line endings in your working directory.

@Jackbennett
Copy link
Contributor

Git is just telling you that when you commit the file to the repo it's going to fix the line endings to be consistent across any operating system that would view the file. The output is from cmder running git status each time to keep the notification up to date.

I guess it's because whatever made composer.json was a windows program and didn't use the most appropriate line endings in the file.

If you have git installed yourself you just needed to get the minimal download. It shouldn't matter I think whatever version of git will still use your configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants