Skip to main content

repo_name_from_path

Function repo_name_from_path 

Source
pub fn repo_name_from_path(path: &str, suffix: &str) -> Option<String>
Expand description

Strip a smart-HTTP endpoint suffix (/info/refs, /git-upload-pack) from a request path and return the repo name. None if the suffix isn’t present.