Skip to content

Instantly share code, notes, and snippets.

@ornicar
Created November 10, 2010 13:19
Show Gist options
  • Save ornicar/670839 to your computer and use it in GitHub Desktop.
Save ornicar/670839 to your computer and use it in GitHub Desktop.
Git + ZendFramework submodule = modified: src/vendor/zend because of CRLF: the workaround
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