feat: set username and email
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
5229d30758
commit
daf0fc8839
@ -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