NEVER use `git commit .` or stage submodules. Leave it to platform maintainers! See [1] where you'll find few hooks which would help you preventing accidental commit of submodules. [1] http://wiki.blender.org/index.php/User:Nazg-gul/DevTools#Git_hooks