Skip to main content

detect

Function detect 

Source
pub fn detect(dir: &Path) -> Detection
Expand description

Read the origin remote of dir and map it, without judging.

The read answers for dir alone: the variables a running hook exports are scrubbed, so an inherited GIT_DIR cannot answer with another repository’s remote.