Skip to content

Do true default remote branch detection #307

Open
@alerque

Description

@alerque

We took one pass at this issue in #294, closed by PR #295, but the solution was to just iteratively check a few possibilities. This is more robust and definitely deserved to be included in the code sooner than later, but I can't help but feeling it's not the best permanent solution.

I'm opening this to track an ultimate solution. As I commented here one potential solution might be to clone first and ask questions later: specifically doing a bare clone and just letting Git find the default branch itself, then inspecting what it came up with and using that info to do a checkout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions