[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- git
- Domain
- tooling
Research direction
Start at the workspace creation flow that handles the selected Remote branch and trace the value passed to the git checkout -B command. Reproduce with a remote-only branch such as master-updated-stu, then verify that workspace creation succeeds using the remote-tracking reference and that the resulting workspace is based on the selected commit.
Written by the indexing model from the issue text.
Description
Platform
Windows
Operating system version
11
System architecture
Windows
PolyScope Version
0.26
Bug description
Creating a workspace from a non-default branch fails even when I select that branch from the Remote branches section.
Polyscope appears to discard the remote qualification and passes the branch’s short name to git checkout -B. The new clone only contains the branch as a remote-tracking ref, so Git cannot resolve the supplied start-point.
Inspection of the failed clone shows:
refs/heads/master
refs/remotes/origin/master-updated-stu
The remote-tracking ref resolves successfully:
git rev-parse --verify "origin/master-updated-stu^{commit}"
But the short local name does not:
git rev-parse --verify "master-updated-stu^{commit}"
fatal: Needed a single revision
Steps to reproduce
- Open a repository whose default/current branch is master.
- Ensure another branch, such as master-updated-stu, exists on origin.
- Start creating a new workspace "from branch"
- Search for or select relevant branch name.
- Select the entry marked Remote.
- Create the workspace.
Relevant log output
Command failed: git checkout -B "brave-moth" "master-updated-stu"
fatal: 'master-updated-stu' is not a commit and a branch 'brave-moth' cannot be created from it
- Dominant language
- No language data
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beyondcode/polyscope-community
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
beyondcode/polyscope-community#198 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
beyondcode/polyscope-community#189 · 1 comment · 2 reactions ·
All issues in beyondcode/polyscope-community
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
olcf/olcf-test-harness#278 · 1 comment ·