Skip to content

Re-sync Submodules After Checking Out a Pinned Commit - #552

Merged
jilliebean merged 1 commit into
mainfrom
fix-recursive-submodules-pinned-commit
Oct 21, 2026
Merged

jilliebean merged 1 commit into
mainfrom
fix-recursive-submodules-pinned-commit

Conversation

@jilliebean

@jilliebean jilliebean commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

git clone --recursive only initializes the submodules present at the initially cloned revision. When a commit is pinned and its submodules differ from the default branch (e.g. they were later removed), the checkout leaves them uninitialized. Run git submodule update --init --recursive after the checkout when recursive is set.

Based on tavishnvidia#1.

Pull Request Description

Author Checklist

  • Passes all unit tests

`git clone --recursive` only initializes the submodules present at the
initially cloned revision. When a commit is pinned and its submodules
differ from the default branch (e.g. they were later removed), the
checkout leaves them uninitialized. Run `git submodule update --init
--recursive` after the checkout when recursive is set.

Based on tavishnvidia#1.
@jilliebean jilliebean self-assigned this Oct 21, 2026
@jilliebean
jilliebean requested a review from sopcao October 21, 2026 21:33
@jilliebean
jilliebean merged commit 2a9df69 into main Oct 21, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants