I am new to git but have spent a good deal of time reading through documentation and gotchas on git submodules before trying them. I am having a problem that I feel -- probably naively -- is a bug in git:
I have a project, in that root directory I have a plugins folder, which has a submodule called myplugin. I added it with
git submodule add xxxxxgithub.com/me/myplugin.git plugins/myplugin
which worked great. Everything has been working fine for about a week. The framework I'm using has support for overriding views that are inside a plugin. Those must be stored in
views/plugins/myplugin/customviewfile.
The problem is, git thinks that the override folder is also at:
plugins/myplugin
Git won't commit anything inside of my views/plugins/myplugin directory, it won't track the files, I can't unignore it no matter what I do. In Github it shows up with the green arrow indicating that it's a submodule and when I switch branches that directory carries over the way submodules do
I have been pulling my hair out for over an hour and making no progress... any help is greatly appreciated!