Skip to content

"master" branch renamed to "main" #8956

Closed

Description

@srittau

I don't want to go into the political reasons for renaming the branch, but in my opinion there is a clear push to standardize on the new name main. I believe there was also a SC decision that all projects under the python org should eventually change to that name, although we haven't been approached about this. But CPython has switched (and the stub_uploader always used main). Selfishly, I also renamed the branches in most of my projects, with typeshed being one of the last still using master.

Activity

  1. AlexWaygood commented on Oct 21, 2022

    @AlexWaygood
    Member

    I support doing this.

  2. srittau commented on Oct 31, 2022

    @srittau
    CollaboratorAuthor

    Cc @JelleZijlstra @hauntsaninja

    If there are no objections, I would do the honors tomorrow (Tuesday CET).

  3. srittau commented on Oct 31, 2022

    @srittau
    CollaboratorAuthor

    From what I can see, the following files need to be updated after the transition:

    • .github/workflows/mypy_primer.yml
    • README.md
    • scripts/stubsabot.py
  4. srittau commented on Oct 31, 2022

    @srittau
    CollaboratorAuthor

    Also in the stub_uploader:

    • stub_uploader/build_wheel.py
    • stub_uploader/get_version.py
  5. srittau commented on Nov 1, 2022

    @srittau
    CollaboratorAuthor

    I have renamed the branch now. Contributors working directly from the typeshed repository will need to run the following commands locally to update their local copy:

    git branch -m master main
    git fetch origin
    git branch -u origin/main main
    git remote set-head origin -a
    
  6. pinned this issue on Nov 1, 2022
  7. changed the title [-]Rename "master" branch to "main"?[/-] [+]"master" branch renamed to "main"[/+] on Nov 1, 2022
  8. unpinned this issue on Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: policyOrganization of the typeshed project

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions