Function cargo_update::ops::find_git_db_repo [−][src]
pub fn find_git_db_repo(git_db_dir: &Path, url: &str) -> Option<PathBuf>
Expand description
Find the bare git repository in the specified directory for the specified crate
The db directory is usually $HOME/.cargo/git/db/
The resulting paths are children of this directory in the format
[{last_url_segment || "_empty"}-{hash(url)}
]
(https://github.com/rust-lang/cargo/blob/74f2b400d2be43da798f99f94957d359bc223988/src/cargo/sources/git/source.rs#L62-L73)