Development record
gitutil.RemoteHeadBranch runs git ls-remote through gitutil.Net directly rather than through abcd land's Options.Git seam, so landing tests cannot record the call or fake an answer: they need a real local bare origin for every case, and the unreachable-origin and malformed-answer cases are reached only by building such a repository. Found by the Opus reviewer of the origin/HEAD fix (iss-2610161831078335), 2026-10-16.
issueresolvedminoriss-2610161849042422
gitutil.RemoteHeadBranch runs git ls-remote through gitutil.Net directly rather than through abcd land's Options.Git seam, so landing tests cannot record the call or fake an answer: they need a real local bare origin for every case, and the unreachable-origin and malformed-answer cases are reached only by building such a repository. Found by the Opus reviewer of the origin/HEAD fix (iss-2610161831078335), 2026-10-16.
Grounds
- pursued: land's ls-remote now goes through Options.Git, which TestOriginsDefaultBranchIsAskedThroughTheGitSeam shows by faking six answers against a real origin that says main; a landing that refuses nothing for a faked bad answer, or a gitCalls list with no ls-remote in it, would show it wrong
Frontmatter
| id | iss-2610161849042422 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2610161849042422-gitutil-remoteheadbranch-runs-git.md
open on GitHub ↗ · commit history ↗
mentions1
- iss-2610161831078335abcd land refuses when the checkout's local origin/HEAD is stale or missing and tells the person to run git fetch and git remote set-head themselves (land.go, the forge-default check), though abcd can settle the gap by asking origin which branch is its default. The product thinker has ruled twice against a refusal that hands a person a manual step abcd can resolve itself (adr-2609301720596683, adr-2610030720195401). The refusal for the branch being the default also appends a set-head hint that has nothing to do with that case. Found by a peer session and confirmed on main, 2026-10-16.