Mention the issue when the branch names of the submodules and superproject differ
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 55/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- git
調査の方向性
Find the Publishing Submodule Changes section and read its guidance for git push --recurse-submodules=on-demand. Verify the reported behavior when the superproject branch is main and the submodule branch is master; done means the section briefly explains this limitation and prevents the confusing failure described in the issue.
索引モデルが issue の本文から書いたものです。
説明
General overview of your idea.
The Publishing Submodule Changes section describes how to use the git push --recurse-submodules=on-demand command, which should push the submodules changes first, then the main project changes.
However, as of Git v2.51.2, it will not work if the names of the superproject and submodules branches are different. The error is something like this:
fatal: src refspec 'refs/heads/main' must name a ref
fatal: process for submodule 'simple_git_project' failed
In this case, the superproject branch was called main, and the submodule branch was called master.
I don't know what Git maintainers think about it, but the problem is quite old (here's a mention on Stack Overflow).
It might be helpful to add a short note clarifying that in Pro Git.
What problem will this solve?
This will save the reader from two hours of confusion when a command fails for a not-so-obvious reason.
Have you thought about other solutions?
No response
Do you want to help with this enhancement idea?
Maybe
- 主要言語
- CSS
- スター
- 6.6k
- フォーク
- 2.1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
progit/progit2 のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
似ている issue
-
area:docs area:render bug criticality:p3 triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
registrystack/registry-stack#1618 ·
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-aw-workshop#3897 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
siderolabs/docs#791 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
nestjs/docs.nestjs.com#3554 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 98/100
huggingface/course#1320 ·
メンテナーはふだん 1 日以内に返信