diff --git a/src/git/mod.rs b/src/git/mod.rs index 48ffd18..3442b58 100644 --- a/src/git/mod.rs +++ b/src/git/mod.rs @@ -2,6 +2,7 @@ use anyhow::{bail, Context, Result}; use git2::{Repository, Signature, StatusOptions, Config, Oid, ObjectType}; use std::path::{Path, PathBuf}; use std::collections::HashMap; +use tempfile; pub mod changelog; pub mod commit; @@ -367,11 +368,6 @@ impl GitRepo { let temp_file = tempfile::NamedTempFile::new()?; std::fs::write(temp_file.path(), message)?; - let mut cmd = std::process::Command::new("git"); - cmd.args(&["commit", "-S", "-F", temp_file.path().to_str().unwrap()]) - .current_dir(&self.path) - .output()?; - let output = std::process::Command::new("git") .args(&["commit", "-S", "-F", temp_file.path().to_str().unwrap()]) .current_dir(&self.path)