Skip to main content

agrees

Function agrees 

Source
pub fn agrees(reference: &Reference, detected: &Detection) -> Result<(), String>
Expand description

Whether a reference names the clone the verb was pointed at.

The ordinary mistake this guards is an agent pasting a URL while sitting in another checkout: the branch would be minted on one project and seated in another.

ยงErrors

A reference whose project path or host disagrees with the detected remote.