Skip to main content

semver_common/tools/git/
fetch.rs

1use crate::{Alert, run_command};
2use r_log::Logger;
3
4/// Fetch from the remote repository to ensure commit history is updated.
5pub fn fetch(logger: &Logger) -> Result<(), Alert> {
6    run_command("git", ["fetch", "--tags", "--prune"], Some(logger))?;
7    Ok(())
8}