ITADN

editor: copy/open permalink to line fails with "remote "origin" not found" on all blobless clones

#63025Openrossgray 创建于 21 小时前
state:needs triage
R
rossgraycommented
### Reproduction steps 1. Open Zed inside any repo that has been cloned using `--filter=blob:none` 2. Open any tracked file 3. Invoke `editor: copy permalink to line` For example: 1. `git clone --filter=blob:none https://github.com/PostHog/posthog` 2. `cd posthog && zed .` 3. Open any tracked file; invoke `editor: copy permalink to line` ### Current vs. Expected behavior A toast appears with an error: `Failed to copy permalink: remote "origin" not found` <img width="1238" height="893" alt="Image" src="https://github.com/user-attachments/assets/e4d24d15-e23b-4ed0-a987-88879d0a8691" /> I expect the permalink to be copied ### Zed version and system specs Zed: 1.13.1 (stable) OS: macOS (Apple Silicon) Memory: 64 GiB Architecture: aarch64 ### Attach Zed log file <details><summary>Zed.log</summary> <!-- Paste your log inside the code block. --> ```log 2026-08-21T16:01:52+01:00 INFO [git::repository] opening git repository at "/Users/ross/dev/posthog-tmp/.git" using git binary "/opt/homebrew/bin/git" 2026-08-21T16:01:52+01:00 WARN [task::vscode_format] Skipping deserializing of a task `start-dev-with-debug` with the unsupported `dependsOn` key 2026-08-21T16:01:52+01:00 INFO [project::context_server_store] posthog requires OAuth authorization (auth server: https://oauth.posthog.com/) 2026-08-21T16:02:00+01:00 ERROR [crates/editor/src/git.rs:1670] remote "origin" not found 2026-08-21T16:02:04+01:00 INFO [project::lsp_store] language server 3: unregistered workspace/DidChangeWatchedFiles capability with id f9a62683-f3f1-4876-8a0e-7480957d4666 2026-08-21T16:02:04+01:00 INFO [project::lsp_store] language server 3: unregistered workspace/DidChangeWatchedFiles capability with id 66519db8-eacb-418a-88cb-7f670b404a3b 2026-08-21T16:02:12+01:00 INFO [zed::reliability] memory usage: resident 346 MiB (+87 MiB), virtual 585496 MiB 2026-08-21T16:02:12+01:00 INFO [zed::reliability] worktree diagnostics: stores 2, slots 2, live 2, visible 2, strong 2, dead weak 0, loading 0, entries 109810, visible entries 106387, largest /Users/ross/dev/posthog (56891 entries, 53473 visible) ``` </details> ### Relevant Zed settings <details><summary>settings.json</summary> <!-- Paste your settings inside the code block. --> ```json ``` </details> ### Relevant Keymap <details><summary>keymap.json</summary> <!-- Paste your keymap file inside the code block. --> ```json ``` </details> ### (for AI issues) Model provider details _No response_ ### If you are using WSL on Windows, what flavor of Linux are you using? None
1 条评论