One day i came upon this error when i tried committing a plugin using git:
fatal: Path 'vendor/plugins/whatever/ChangeLog' is in submodule 'vendor/plugins/whatever'
(I cloned the whatever plugin into my vendors/plugin folder by the way)
I had no .gitmodule file and there are no references to whatever plugin in my .git/config. I also removed all the .git folders in the whatever plugin.
Anyway, if you encounter this too, and you don't want to add a submodule use this:
git rm --cached vendor/plugins/whatever

No comments:
Post a Comment