pub fn pin(fetch_id: u64, name: &str, source: Source) -> Result<Pinned>
Expand description
Pin the given git-sourced package.
This clones the repository to a temporary directory in order to determine the commit at the HEAD of the given git reference.