I added two submodules to my vim repository, and the git status command always outputs this:
On branch master
Changed but not updated:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: bundle/snipmate
modified: bundle/yankring
I’ve run:
git submodule init
git submodule update
git add .
and nothing happens to make it go away. Any ideas?
This probably is due to a change added in git-1.7.0 by which submodules become marked as dirty if they contain modified or untracked files.
git statushas an option--ignore-submodulesto ignore specific changes. Fromman git-status:(this option was only added in git-1.7.2)