mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-17 15:17:09 +03:00
harden git backends against various configs
This commit is contained in:
parent
8cd7994d42
commit
4f03b290c4
@ -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"]}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[cfg(feature = "tokio")]
|
||||
#[cfg(any(test, feature = "tokio"))]
|
||||
pub mod tokio;
|
||||
|
||||
/// Provides a means for executing Git CLI commands.
|
||||
|
@ -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;
|
||||
|
@ -15,6 +15,7 @@ extern crate alloc;
|
||||
#[cfg(test)]
|
||||
mod integration_tests;
|
||||
#[cfg(test)]
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use integration_tests::*;
|
||||
|
||||
mod backend;
|
||||
|
Loading…
Reference in New Issue
Block a user