I've got a repository that stores all of my Vim settings. It uses submodules to pull in plugins with Pathogen (I've looked at other plugin managers, not interested so far).
Due to the way MSYSGit handles line endings when opening Vim for commit messages, I need to have the repository stored with Unix line endings (eol=lf).
I've tried adding a .gitattributes file in the main repo with the content:
* eol=lf
* text=auto
After refreshing the main repository using git rm --cached -r .
and git reset --hard
, the line endings in the main repo are now LF. Running the same commands inside of submodules, however, did not work.
How can configure my git repo so that submodules are checked out with LF line endings?