[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- git
- Lĩnh vực
- tooling
Hướng nghiên cứu
Bắt đầu từ luồng tạo workspace xử lý branch Remote đã chọn và theo dõi giá trị được truyền vào lệnh git checkout -B. Tái hiện với một branch chỉ tồn tại trên Remote, chẳng hạn như master-updated-stu, sau đó xác minh rằng việc tạo workspace thành công khi sử dụng tham chiếu theo dõi từ xa và workspace kết quả được dựa trên commit đã chọn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 20
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của beyondcode/polyscope-community
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
[Bug]: Large workspace causes permanent server reconnect loop when a remote client subscribes Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
beyondcode/polyscope-community#198 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
beyondcode/polyscope-community#189 · 1 bình luận · 2 reaction ·
Tất cả issue của beyondcode/polyscope-community
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
googleapis/librarian#7636 ·
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
olcf/olcf-test-harness#278 · 1 bình luận ·