webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

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

Open evilbuck opened this issue 9 months ago • 0 comments

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.

evilbuck avatar Mar 10 '25 12:03 evilbuck