Repository navigation
Create new repositories on the main branch - #1286
Merged
Merged
Conversation
Ndpnt
approved these changes
Oct 7, 2026
Ndpnt
left a comment
Contributor
There was a problem hiding this comment.
I agree with the change. I would frame the motivation differently though: the point is less that the deployment expects main (it could be made configurable) than that main is now the default everywhere the engine publishes. GitHub and GitLab create main by default, the deployment already assume it, and Git's own roadmap states that Git 3.0 will create new repositories on main to match the forges. The engine was the last piece whose result still depended on the local Git configuration of the server. Framed this way, a constant rather than a configuration option is the obvious choice.
Co-authored-by: Nicolas Dupont <npg.dupont@gmail.com>
clementbiron
force-pushed
the
create-repositories-on-main-branch-review
branch
from
October 7, 2026 11:34
c859c27 to
61d8051
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The versions, snapshots and tracking-results repositories created by the engine got the default branch of the Git configuration of the server,
masteron most servers, whereas the deployment clones them onmainand the reporter links toblob/main. Once published, such a repository pushed amasterbranch next to themainbranch that GitHub creates with the README.New repositories are now created with
git init --initial-branch=main, which requires Git 2.28, available on all the operating systems the engine is guaranteed to work on. Git ignores this option for existing repositories, which keep their branch, as renaming it would diverge from their remote; the changelog explains how to move one tomain.