OK So I thought I was licking it ... but now ....
I have a project that includes one small library from GitHub as a submodule. In the original version of this superproject, the submodule works as expected.
However, I just cloned the super project, did what I thought should: "git subodule init", got the submodule directory, but it is empty.
If I try to do
git submodule update
I get
fatal: Needed a single revision Unable to find current revision in submodule path 'external_libraries/BEACHhtml'
If i try
git submodule foreach git pull
I get
Entering 'external_libraries/BEACHhtml' fatal: Where do you want to fetch from today? Stopping at 'external_libraries/BEACHhtml'; script returned non-zero status.
In my .git / config, I have this:
[submodule "external_libraries/BEACHhtml"] url = git@github.com:interstar/BEACHhtml.git
In my .gitmodules, I have this:
[submodule "external_libraries/BEACHhtml"] path = external_libraries/BEACHhtml url = git@github.com:interstar/BEACHhtml.git
Has anyone realized what is missing?
git git-submodules
interstar Sep 30 2018-11-11T00: 00Z
source share