async fn origin_remote(cwd: &Path, deadline: Option<Instant>) -> OriginRemoteExpand description
Ask whether cwd has an origin remote at all: a local base beside one is
a base nobody fetched, which is not the same as a repository without a
remote to lag behind.
The question is asked with git remote, not get-url. A non-zero
get-url is two answers in one shape - “no such remote” and a git that
would not run - and reading both as “no remote” is how a base nobody
fetched got drawn as purely local. git remote answers a list on success;
a repository with none is an empty list, and anything else is a probe that
did not answer.
The match is the literal origin: it is the one remote a base refresh
knows how to fetch, so a repository whose only remote is named otherwise
still reads as having nothing this read could refresh.