New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename the "master" branch to "main" #16834
Comments
is there any sort of pre-merge github hook that could help here ? make master a protected branch ? |
I guess that'd help in avoiding mistakes. We can live without it, because we have a small group of people who do merges regularly, so I think we can just agree to follow a certain procedure, but a hook would make things more errorproof. Once we delete the master branch, this will stop being an issue. |
sounds ok to me, but maybe let's do that in the beginning of a cycle, i.e. right after we released 247? |
FYI, it looks like GH is working on a way to rename master without blowing up existing issues/PRs. |
@pcmoore thank you very much for that link. that's useful! much appreciated |
Several links:
|
FYI, it looks like the GH branch renaming support has landed: https://github.blog/changelog/2021-01-19-support-for-renaming-an-existing-branch |
I did the renaming in https://github.com/systemd/zram-generator. It is indeed painless. I had one PR, and the PR was automatically updated. In my local repo, |
CI uses the branch name though. I'm pretty sure that at least ubuntuautopkg tests have "branch=master" included in the CI request urls. We'll need to update those. @xnox? What about centos ci, does it hardcode the branch name? @mrc0mmand |
It does, but the switch should be quick and painless. |
OK. So it sounds all easy, except that we need to coordinate the update of ubuntuautopkg tests and centos ci. @mrc0mmand will update the latter. Do we have someone who can sign up to update ubuntuautopkg tests? |
btw, I am happy if the rename happens any time, from my side no further discussion or delays needed. just do it. maybe @mrc0mmand should do the switch when it's best for him, so that he can sync it up with the CI update. |
I could introduce a temporary workaround, that would check which branch is the main one and use it, thus make it compatible with both |
I'd just do the switch and fix-up the fall-out. |
Done. Instruction from github for local clones:
Please report any CI fallout in this ticket. |
Instead of deleting master branch, one can push a soft-reference to make an alias to main => if that is causing any temporary issues anywhere. |
@keszybz can you update https://github.com/systemd/systemd-stable accordingly? |
It's just a follow-up to systemd#16834
To judge from https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-bionic-upstream-systemd-ci-systemd-ci/bionic/amd64/s/systemd-upstream/20210121_135821_3d77c@/log.gz where the script failed with
, it does |
Fixed |
Thank you! I'll force-push #18335 to trigger Ubuntu CI to make sure it works. |
Done, thanks for the hint!
You should have an admin access there. |
Looks like I should have logged in properly :-) I can't seem to change the badge at https://the-real-systemd.semaphoreci.com/projects/systemd/settings/badge (which I think should be added to README eventually) though. |
The badge should be already there 2e445f4 :-) |
It's there but it shows the status of the master branch as far as I can tell: https://the-real-systemd.semaphoreci.com/badges/systemd/branches/master.svg |
Ugh, you're right, I'm blind :-)
should do the trick. Will open a PR once I'll get my fork migrated as well. |
Another follow-up to systemd#16834
Done. |
Hm, ...
I wonder what I did wrong... |
I have the same content in |
I semi-regularly run "mr run git gc", where I noticed this error. |
Yes. Also, no error with git-2.30.0-1.fc33.x86_64. |
hm, weird. anyway, will fix the file manually. |
It's just a follow-up to systemd#16834
Another follow-up to systemd#16834
It's just a follow-up to systemd#16834
Another follow-up to systemd#16834
It's just a follow-up to systemd#16834
Another follow-up to systemd#16834
See seccomp/libseccomp#255. We should do the same.
Quoting here to make the discussion easier:
Re 4.: in our case, we have too many outstanding PRs, so for a while we'll have to deal with PRs submitted for the wrong branch. We can use manual merges. I have a local git macro for this, and it works well enough.
The text was updated successfully, but these errors were encountered: