codesandbox / codesandbox/codesandbox-client

GitHub repo with new default branch won't sync

Open
#5,967 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Description of the problem

When you mirror a repo to Github for the purpose of importing to Code Sandbox, Github makes your default branch the first alphabetical branch, such as feat-darkmode even if you have a master branch. Deleting that branch and setting Master branch as master results in No commit found for SHA: feat-darkmode

CodeSandbox Seems to be stuck on the old default branch.

How has this issue affected you? What are you trying to accomplish?

I can't import my repositories or do anything.

To Reproduce
  • Create a Github repository with a readme
  • Import that repository to CodeSandbox
  • Create a new branch called master in gItHuB
  • Delete the branch named "main"
  • Try to import the repository into CodeSandbox
Your Environment
Software Name/Version
Сodesandbox Chrome
Browser Chrome
Operating System Chrome

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the listed GitHub branch-creation, deletion, and import steps, then trace the GitHub repository import and synchronization flow. No source file or test is identified in the issue; done means importing succeeds after the repository's default branch changes and no longer refers to the deleted branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.