pub fn repo_name_from_path(path: &str, suffix: &str) -> Option<String>
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.
/info/refs
/git-upload-pack
None