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

Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.
This repository was archived by the owner on May 27, 2022. It is now read-only.

Antibody wrongly assumes the default branch for a repo is named "master" #369

@mattmc3

Description

@mattmc3

As of October 1st new repos created on GitHub will have their default branch named "main" instead of "master". Antibody assumes that "master" is the default branch and fails if a "master" branch doesn't exist.

This change won't apply to existing repos, leaving two different default branch names (not to mention other projects that already don't use master and default to "develop" or something else). Now, I know Antibody supports the branch:main syntax to specify a branch, but honestly that should not be necessary. I would suggest that Antibody should not assume a default branch name at all if one is not specifically provided and just simply omit the "-b" parameter when cloning. The Version variable in the struct should just stay nil.

"-b", g.Version,

I'd be happy to help with a PR to implement this. We're about a month away from it becoming an issue.

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