Skip to main content

discover

Function discover 

Source
pub fn discover(
    endpoint: &RemoteEndpoint,
    from: &Path,
    cancel: &CancelToken,
) -> Result<Option<PathBuf>, RemoteGitError>
Expand description

Discover the repository containing a remote directory. Ok(None) is the honest “no repository here” — git’s own not-a-repository fatal — while transport failures, missing git/python3 and corrupt repositories are typed errors. The returned workdir is a path on the endpoint, native bytes, never a local path.