Skip to content

Explain on-demand push failures when submodule branch names differ - #2100

Open
AmanBoronbaev wants to merge 1 commit into
progit:mainfrom
AmanBoronbaev:docs/on-demand-submodule-branches
Open

AmanBoronbaev wants to merge 1 commit into
progit:mainfrom
AmanBoronbaev:docs/on-demand-submodule-branches

Conversation

@AmanBoronbaev

Copy link
Copy Markdown

Changes

Explain how to publish a submodule commit when an on-demand push from main fails because the submodule has only a local master branch. The example pushes the intended submodule branch, then uses --recurse-submodules=check for the main project.

Context

Fixes #2060. With Git 2.56.1, two local bare remotes, and an unpushed submodule commit, both the default on-demand push and the explicit origin main form failed on the missing source ref. The two commands in the text published both commits. The updated section also renders in Asciidoctor.

@cursor

cursor Bot commented Dec 2, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

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.

Mention the issue when the branch names of the submodules and superproject differ

1 participant