forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve UX around missing submodules and '--recurse-submodules' for clone
and checkout
#752
Comments
clone
and checkout
clone
and checkout
Also related:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a user clones a repo with
--recurse-submodules
,clone
writes the pathspec.
to the configsubmodule.active
.If this repo at some point in its history had a submodule, but this submodule was then removed, then checking out an older commit where the submodule is still present fails if the checkout uses
--recurse-submodules
.Reproducer:
Cf:
https://lore.kernel.org/git/[email protected]/T/#u
https://lore.kernel.org/git/CAE5ih78zCR0ZdHAjoxguUb3Y6KFkZcoxJjhS7rkbtZpr+d1n=g@mail.gmail.com/
A lot of improvements could be made here.
The text was updated successfully, but these errors were encountered: