master is what github sees, so the submodule it names has to be one a stranger can fetch: a clone of this branch resolves nobilis from github.com/Moho-Chat, not from a Gitea instance they have no account on and may not be able to reach at all. development keeps the Gitea URL, being where the work happens and where both repositories already live side by side. The commit the submodule points at is the same object in both places; only the address differs. The cost of that, written down because it will be met again: every merge of development into master arrives carrying the Gitea URL and has to keep master's. `git submodule sync` after switching branches, too - the URL a checkout uses is copied into .git/config, and changing branches does not recopy it. Co-Authored-By: Claude Opus 5 <[email protected]>
4 lines
86 B
Plaintext
4 lines
86 B
Plaintext
[submodule "nobilis"]
|
|
path = nobilis
|
|
url = https://github.com/Moho-Chat/nobilis.git
|