Skip to content

Support github sync main branch #1781

Closed

Description

@jeiea

Github adopted main as default branch name. But it seems to cause 403 with the openuserjs github webhook sync feature.
How about supporting it?

Activity

  1. Martii commented on Dec 5, 2020

    @Martii
    Member

    Ref(s): (might be added to)

    Always cite when a change comes through like this.

    This topic will be locked as I really don't want a P.C. debate here as it's not the focus of OUJS... however it will be continually considered provided the integrity of the site isn't compromised including all default upstream and downstream observations.

    This would be a breaking change.


    $ mkdir repotest
    $ cd repotest/
    $ git init
    hint: Using 'master' as the name for the initial branch. This default branch name
    hint: is subject to change. To configure the initial branch name to use in all
    hint: of your new repositories, which will suppress this warning, call:
    hint: 
    hint:   git config --global init.defaultBranch <name>
    hint: 
    hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
    hint: 'development'. The just-created branch can be renamed via this command:
    hint: 
    hint:   git branch -m <name>
    $ git --version
    git version 2.32.0
    $ date
    Fri 18 Jun 2021 06:48:27 PM EDT

    Ref(s):

  2. locked as too heated and limited conversation to collaborators on Dec 5, 2020
  3. added
    CODESome other Code related issue and it should clearly describe what it is affecting in a comment.
    securityUsually relates to something critical.
    UIPertains inclusively to the User Interface.
    on Dec 5, 2020
  4. added this to the #1705 milestone on Apr 11, 2021
  5. added
    DOCPertains inclusively to the Documentation operations.
    on Apr 11, 2021
  6. added 2 commits that reference this issue on Oct 16, 2021
    cfe442a
    ab8646c
  7. unlocked this conversation on Sep 19, 2026
  8. Martii commented on Sep 19, 2026

    @Martii
    Member

    Well that foo'd a few things on GH (git specific) side:

    git branch -m master main
    git fetch origin ### FAILED AT THIS POINT
    git branch -u origin/main main
    git remote set-head origin -a

    Manual edit of .git/config to change from master to main.... still trying to get my local clone working.... will report back... used git gui instead and it seems to have realigned with a remote-> fetch from -> origin

  9. locked as resolved and limited conversation to collaborators on Sep 21, 2026
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

    CODESome other Code related issue and it should clearly describe what it is affecting in a comment.DOCPertains inclusively to the Documentation operations.UIPertains inclusively to the User Interface.securityUsually relates to something critical.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions