Documentation
¶
Overview ¶
Package repodetect resolves a provider.RepoCoord from the cwd's git remote. Used by the inbox flow which has a directory, not a URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
Detect resolves the current working directory's git remote into a RepoCoord. Looks at remote.origin first; falls back to the only remote if origin isn't set; errors on 0 or multiple-non-origin remotes per spec §6.
For SSH remotes whose host looks like an ssh_config alias (no dot in the host portion), Detect shells out to `ssh -G` to resolve the real hostname before returning. This requires `ssh` on PATH when such an alias is in use; canonical hosts like `git@github.com:...` skip the resolver and have no new runtime dependency.
Types ¶
This section is empty.