harden git backends against various configs

This commit is contained in:
Josh Junon 2024-01-18 17:38:32 +01:00 committed by GitButler
parent 8cd7994d42
commit 4f03b290c4
4 changed files with 5 additions and 2 deletions

View File

@ -18,4 +18,4 @@ serde = { workspace = true, optional = true }
tokio = { workspace = true, optional = true, features = ["process"]}
[dev-dependencies]
tokio = { workspace = true, features = ["rt", "rt-multi-thread"]}
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "process"]}

View File

@ -1,4 +1,4 @@
#[cfg(feature = "tokio")]
#[cfg(any(test, feature = "tokio"))]
pub mod tokio;
/// Provides a means for executing Git CLI commands.

View File

@ -18,6 +18,7 @@
/// crate::gitbutler_git_integration_tests!(make_repo);
/// }
/// ```
#[allow(unused_macros)]
macro_rules! gitbutler_git_integration_tests {
($create_repo:expr) => {
$crate::gitbutler_git_integration_tests! {
@ -60,4 +61,5 @@ macro_rules! gitbutler_git_integration_tests {
}
}
#[allow(unused_imports)]
pub(crate) use gitbutler_git_integration_tests;

View File

@ -15,6 +15,7 @@ extern crate alloc;
#[cfg(test)]
mod integration_tests;
#[cfg(test)]
#[allow(unused_imports)]
pub(crate) use integration_tests::*;
mod backend;