[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- git
- 领域
- tooling
调研方向
从处理所选 Remote 分支的工作区创建流程开始,跟踪传递给 git checkout -B 命令的值。使用仅存在于 Remote 上的分支(例如 master-updated-stu)重现,然后验证使用远程跟踪引用可以成功创建工作区,并且生成的工作区基于所选的 commit。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- 没有语言数据
- 星标
- 20
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
beyondcode/polyscope-community 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 38/100
beyondcode/polyscope-community#198 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 52/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
beyondcode/polyscope-community#189 · 1 条评论 · 2 个 reaction ·
查看 beyondcode/polyscope-community 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
documentation low-priority templates
难度 2/5 1-3 小时 新手友好度 85/100
jesseray718/openroot#87 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 90/100
danielmiessler/LifeOS#2218 ·
-
in-progress proposal
难度 1/5 1 小时以内 新手友好度 88/100
uibcdf/molsyssuite#36 ·