Created
November 10, 2010 13:19
-
-
Save ornicar/670839 to your computer and use it in GitHub Desktop.
Git + ZendFramework submodule = modified: src/vendor/zend because of CRLF: the workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's a shame, but https://github.com/zendframework/zf2 contains dozens of files with CRLF issues. | |
If like me, you set your Git core.autocrlf to true, then your ZendFramework submodule is always modified: | |
$ git status | |
# On branch master | |
# Changed but not updated: | |
# | |
# modified: src/vendor/zend | |
To fix it, you can set Git core.autocrlf to false *only for this submodule*. | |
Edit `path/to/zf-submodule/.git/config` | |
[core] | |
autocrlf = false | |
... | |
That's all! Git no more bothers you with the infamous CRLF issues of ZendFramework. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment