pub fn detect(dir: &Path) -> Detection
Read the origin remote of dir and map it, without judging.
origin
dir