test server: emit HEAD symref-target under v2 ls-refs symrefs

main

Commit

Soph4mo ago

The v2 ls-refs handler ignored the "symrefs" argument and never emitted HEAD with a symref-target attribute, so source-side HEAD info captured via v2 was always empty in tests. Real git emits

when the client requests "symrefs" and a ref-prefix would include HEAD (or no prefixes are given). Add that to the test server with two small helpers: coversHead checks prefix coverage, lsRefsHeadLine formats the pkt-line by resolving HEAD's symref target through the repo.

Foundation for upcoming work on surfacing source HEAD.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: 66bf19cf9e23

Checkpoints

does git-sync handle any ref or just branches

Claude CodeOpus 4.7[1m]
View session
Checkpoint 1