chore(release): 0.1.0 #6
@ -52,9 +52,19 @@ impl VcsClient {
|
|||||||
fn exec_git(&self, args: &[&str]) -> anyhow::Result<()> {
|
fn exec_git(&self, args: &[&str]) -> anyhow::Result<()> {
|
||||||
match self {
|
match self {
|
||||||
VcsClient::Noop {} => {}
|
VcsClient::Noop {} => {}
|
||||||
VcsClient::Git { source, .. } => {
|
VcsClient::Git {
|
||||||
|
source,
|
||||||
|
username,
|
||||||
|
email,
|
||||||
|
} => {
|
||||||
let checkout_branch = std::process::Command::new("git")
|
let checkout_branch = std::process::Command::new("git")
|
||||||
.current_dir(source.as_path())
|
.current_dir(source.as_path())
|
||||||
|
.args(&[
|
||||||
|
"-c",
|
||||||
|
&format!("user.name={}", username),
|
||||||
|
"-c",
|
||||||
|
&format!("user.email={}", email),
|
||||||
|
])
|
||||||
.args(args)
|
.args(args)
|
||||||
.output()?;
|
.output()?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user