Skip to main content

target_allowed

Function target_allowed 

Source
pub fn target_allowed(target: &Path, repository_dir: &Path) -> bool
Expand description

Whether discovery may touch target, a gitdir or commondir target joined to its base (design §5.3). An allow-list: on Windows only a local drive, or the network share repository_dir itself lives on.