Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using branch in style with no master branch  #265

@martinfleis

Description

@martinfleis

Hi,

just a question - #164 added support for branch to be a part of style but it hard-codes masters as an expected default branch here

branches = [branch[2:] for branch in branches]
if "master" in branches:
branch_name = "master"
elif not branches:
branch_name = None

Since Github now defaults to main branch, there are repos with no master. I am curious if this should not be customizable/fetched from git. I cannot report an issue with that or anything, we just found it in the code and we wondering about the potential effects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions