pub fn discover(
id: &ContainerId,
from: &Path,
cancel: &CancelToken,
) -> Result<Option<PathBuf>, RemoteGitError>Expand description
Discover the repository containing an in-container directory.
Ok(None) is the honest “no repository here” — git’s own
not-a-repository fatal — while engine failures, missing git and
corrupt repositories are typed errors. The returned workdir is a
path inside the container, never a local path.