From 14ccba6a7ed9eaba8026c343e7e301ade88ba0ca Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 4 Aug 2023 00:28:55 +0200 Subject: [PATCH] feat: add git init Signed-off-by: kjuulh --- crates/cuddle-please/tests/vcs.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/cuddle-please/tests/vcs.rs b/crates/cuddle-please/tests/vcs.rs index 8e23650..4660fb3 100644 --- a/crates/cuddle-please/tests/vcs.rs +++ b/crates/cuddle-please/tests/vcs.rs @@ -16,6 +16,13 @@ fn test_vcs_get_noop() { #[traced_test] fn test_vcs_get_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::, None::, "".into()).unwrap(); assert_eq!( git,