Open saintaardvark opened 6 years ago
The commit is present at the gitlab repository, in the constraint-names
branch. I added shallow = true
to .gitmodules
but the option only works for git version >= 2.10. I have v2.7.4 everywhere, perhaps that is something?
Could have been a timing issue between me pushing each repo and you pulling. Both have been active lately :)
This may be due to a change in git behaviour with shallow clones:
git clone --recursive
for this repo works fine.git clone --recursive
for this repo returns the error shown above.One workaround:
git clone
(no --recursive
option)shallow = true
in .gitmodules
git submodule update --init
Of course, that results in a larger copy of the satnogs-rotator repo than is strictly necessary, but at least it works. It may be worth adding a note to the README
about this workaround.
I'm not certain, but it looks like this StackExchange answer may describe this situation; the last part of that comment reads:
shallow = true on .gitmodules only affects the reference tracked by the HEAD of the remote when using --recurse-submodules, even if the target commit is pointed to by a branch, and even if you put branch = mybranch on the .gitmodules as well.
When I try cloning this repo, I see this error:
I see the same error when I try
git submodule init --update
within the newly-cloned repo:Is it possible that the submodule points at a branch or commit that hasn't been pushed to your satnogs-rotator repo?