OK. So I thought I had this licked ... but now ....
I have a project which includes one small library from GitHub as a submodule. In the original version of that super-p
Solved by deleting 2 directories and refetching submodule:
external_libraries/BEACHhtml
and look into .git
file. It's content should be something like gitdir: ../../.git/modules/external_libraries/BEACHhtml
external_libraries/BEACHhtml
and .git/modules/external_libraries/BEACHhtml
directories.From now on git submodule update
runs without errors.