[Bug]: Could not read from remote repository
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- git, github
- Lĩnh vực
- devtools
Hướng nghiên cứu
Bắt đầu bằng cách truy vết tiến trình con git được worktree.create sử dụng cho git fetch origin "main", sau đó so sánh thư mục làm việc và môi trường của nó với terminal của người dùng. Tái hiện bằng thiết lập nhiều tài khoản GitHub sử dụng includeIf và core.sshCommand; hoàn tất khi repository yêu cầu SSH key đã chọn được fetch thành công thông qua Polyscope.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Platform
macOS
Operating system version
macOS Tahoe 26.3
System architecture
ARM64 (M1, M2, etc)
PolyScope Version
0.7.0
Bug description
Hello! First, the app looks amazing, the remote feature is exactly what I was looking for coming from Conductor which I use daily. I can't wait to be able to try it out.
When adding a repository from a local path, it fails to fetch the remote. The same git fetch origin "main" command works perfectly from my terminal.
I've since identified the root cause (thus the issue update). I use two GitHub accounts (personal and work) with includeIf directives in ~/.gitconfig to set core.sshCommand per directory, selecting the correct SSH key for each account. Here's the expected flow:
- Git reads
~/.gitconfig includeIf "gitdir/i:~/Code/"matches → includes~/Code/.gitconfigcore.sshCommand = "ssh -o IdentitiesOnly=yes -i ~/.ssh/github-perso"is set- SSH authenticates as the correct account
What happens in Polyscope:
- Polyscope spawns
git fetch origin "main" includeIfis not evaluated (likely because Polyscope runs git from a different working directory, or strips/overrides environment variables likeHOME)- No
core.sshCommandis set - SSH falls back to the agent, tries keys in order, and authenticates as my other account
- GitHub returns "Repository not found" (that account can't access this repo)
Supporting evidence:
- Repos owned by my work account (whose SSH key happens to be tried first by the agent) work fine in Polyscope
- Repos owned by my personal account consistently fail with
ERROR: Repository not found - From terminal:
ssh -T git@github.com→ work account (default agent order), whilessh -o IdentitiesOnly=yes -i ~/.ssh/github-perso -T git@github.com→ personal account - Other tools that shell out to
git(Conductor, OpenCode) evaluateincludeIfcorrectly
Likely fix: Ensure the git subprocess inherits the user's full environment (especially HOME) and that the working directory is set to the repo path before running git fetch, so that includeIf "gitdir:..." patterns can match correctly.
My issue is likely related to https://github.com/beyondcode/polyscope-community/issues/17 — both point to the subprocess environment not matching the user's shell environment.
I also have a custom gh wrapper script with similar per-account logic. I also use Conductor and the OpenCode GUI which work flawlessly with this setup.
Let me know if I can help debug further. Have a great day!
Steps to reproduce
- Have a multi-account GitHub setup using
includeIf+core.sshCommandin~/.gitconfig - Open Polyscope
- Click "Choose repository"
- Choose a repository that requires the
includeIf-resolved SSH key (not the default agent key) - Wait for it to load
- The error notification appears in the bottom right corner (see screenshot)
Relevant log output
[server:err] ERROR: Repository not found.
[server:err] fatal: Could not read from remote repository.
[server:err] [ws] worktree.create error: Command failed: git fetch origin "main"
(Full logs available on request — the error repeats on every worktree.create attempt. A secondary Command "sites" is not defined error also appears on every repo.add.)
- 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
-
[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ 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
Tất cả issue của beyondcode/polyscope-community
Issue tương tự
-
kaliscan.com Đang mởN: AdGuard for iOS P3: Medium T: Ads
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AdguardTeam/AdguardFilters#242501 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Đang mởcustomer-eng status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
add-toolnames MCP Toolnames Toolnames checkup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
rajbos/ai-engineering-fluency#2190 · 3 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gajus/eslint-plugin-jsdoc#1776 · 1 reaction ·