Add sqlite for tracking build history.
This commit is contained in:
@@ -15,7 +15,7 @@ where
|
||||
let dest = AsRef::<OsStr>::as_ref(dest.as_ref());
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["init"]);
|
||||
command.args(["init"]);
|
||||
command.arg(format!("--initial-branch={}", branch.as_ref()));
|
||||
command.kill_on_drop(true);
|
||||
let output = command.output().await?;
|
||||
@@ -43,7 +43,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["remote", "add"]);
|
||||
command.args(["remote", "add"]);
|
||||
command.arg(name);
|
||||
command.arg(url);
|
||||
command.kill_on_drop(true);
|
||||
@@ -78,7 +78,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["fetch"]);
|
||||
command.args(["fetch"]);
|
||||
if let Some(d) = depth {
|
||||
command.arg(format!("--depth={}", d));
|
||||
}
|
||||
@@ -118,7 +118,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["checkout"]);
|
||||
command.args(["checkout"]);
|
||||
if force {
|
||||
command.arg("--force");
|
||||
}
|
||||
@@ -149,7 +149,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["remote", "get-url"]);
|
||||
command.args(["remote", "get-url"]);
|
||||
command.arg(remote.as_ref());
|
||||
command.kill_on_drop(true);
|
||||
let output = command.output().await?;
|
||||
@@ -181,7 +181,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["reset"]);
|
||||
command.args(["reset"]);
|
||||
if hard {
|
||||
command.arg("--hard");
|
||||
}
|
||||
@@ -213,7 +213,7 @@ where
|
||||
let mut command = Command::new("git");
|
||||
command.arg("-C");
|
||||
command.arg(dest);
|
||||
command.args(&["clean"]);
|
||||
command.args(["clean"]);
|
||||
if recurse_into_untracked_directories {
|
||||
command.arg("-d");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user