Function forc_pkg::fetch_git

source ·
pub fn fetch_git(
    fetch_id: u64,
    name: &str,
    pinned: &SourceGitPinned
) -> Result<PathBuf>
Expand description

Fetch the repo at the given git package’s URL and checkout the pinned commit.

Returns the location of the checked out commit.

NOTE: This function assumes that the caller has aquired an advisory lock to co-ordinate access to the git repository checkout path.