feat: add git init
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-04 00:28:55 +02:00
parent 4c7ea7dae6
commit 14ccba6a7e
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -16,6 +16,13 @@ fn test_vcs_get_noop() {
#[traced_test] #[traced_test]
fn test_vcs_get_git_found() { fn test_vcs_get_git_found() {
let testdata = get_test_data_path("git-found"); let testdata = get_test_data_path("git-found");
if let Err(e) = std::process::Command::new("git")
.arg("init")
.current_dir(&testdata)
.output()
{
eprintln!("{e}");
}
let git = VcsClient::new_git(&testdata, None::<String>, None::<String>, "".into()).unwrap(); let git = VcsClient::new_git(&testdata, None::<String>, None::<String>, "".into()).unwrap();
assert_eq!( assert_eq!(
git, git,