Skip to content

Does not work with repos that don't use main as the master branch #1766

@evilbuck

Description

@evilbuck

Describe the bug

After creating the repository in gitthub, an error message is displayed , "could not find main". There isn't a "main" branch. There is a master branch.

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-zzka6j4b?file=index.html

Steps to reproduce

  1. create a repo on github in an account that uses the traditional "master" branch
    That's it.

Expected behavior

I'm not actually sure what the expected behavior is when successfully creating a github repo and connecting since I've never seen it.

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 134.0.0.0
Major version = 134
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 95883794,
  "usedJSHeapSize": 88260082,
  "jsHeapSizeLimit": 4294705152
}
Hash = 495c5120

Additional context

A way to configure the naming of the master branch would solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions