summaryrefslogtreecommitdiffstats
path: root/src/modules/git_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/git_state.rs')
-rw-r--r--src/modules/git_state.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/git_state.rs b/src/modules/git_state.rs
index f2d1e1c9d..8c68e9d2b 100644
--- a/src/modules/git_state.rs
+++ b/src/modules/git_state.rs
@@ -177,9 +177,10 @@ mod tests {
use std::fs::OpenOptions;
use std::io::{self, Error, ErrorKind, Write};
use std::path::Path;
- use std::process::{Command, Stdio};
+ use std::process::Stdio;
use crate::test::ModuleRenderer;
+ use crate::utils::create_command;
#[test]
fn show_nothing_on_empty_dir() -> io::Result<()> {
@@ -278,7 +279,7 @@ mod tests {
A: IntoIterator<Item = S>,
S: AsRef<OsStr>,
{
- let mut command = Command::new("git");
+ let mut command = create_command("git")?;
command
.args(args)
.stdout(Stdio::null())