pub fn checkout(repo: &Path, gitref: &str) -> Result<(), GitError>
Check out a specific ref in repo — accepts tag / branch / sha.
repo