Function cargo_update::ops::find_git_db_repo
source · [−]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)