fix(coding-agent): handle git @ref parsing edge cases and pinned update tests refs #1299

This commit is contained in:
Mario Zechner 2026-02-05 21:56:57 +01:00
parent 8abcb35c62
commit f33844fe37
3 changed files with 73 additions and 29 deletions

View file

@ -66,6 +66,7 @@ ssh://git@github.com/user/repo@v1
- HTTPS and SSH URLs are both supported.
- SSH URLs use your configured SSH keys automatically (respects `~/.ssh/config`).
- For non-interactive runs (for example CI), you can set `GIT_TERMINAL_PROMPT=0` to disable credential prompts and set `GIT_SSH_COMMAND` (for example `ssh -o BatchMode=yes -o ConnectTimeout=5`) to fail fast.
- Raw `https://` URLs work without the `git:` prefix.
- Refs pin the package and skip `pi update`.
- Cloned to `~/.pi/agent/git/<host>/<path>` (global) or `.pi/git/<host>/<path>` (project).