semver_common/tools/git/push.rs
1use crate::{Alert, run_command};
2use r_log::Logger;
3
4/// Pushes any commited changes in git to the authenticated remote repository.
5pub fn push(logger: &Logger) -> Result<(), Alert> {
6 run_command("git", ["push"], Some(logger))?;
7 run_command("git", ["push", "--tags"], Some(logger))?;
8 Ok(())
9}