From 134fe4f566d94fd4ca91c6417fab0ae7b3e4275f Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 20 Dec 2018 16:45:54 +0000 Subject: Fix the tests and fix the precommit hook --- crates/tools/src/bin/pre-commit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/tools/src/bin') diff --git a/crates/tools/src/bin/pre-commit.rs b/crates/tools/src/bin/pre-commit.rs index ca1909479..bae3b26d3 100644 --- a/crates/tools/src/bin/pre-commit.rs +++ b/crates/tools/src/bin/pre-commit.rs @@ -14,13 +14,14 @@ fn update_staged() -> Result<()> { let root = project_root(); let output = Command::new("git") .arg("diff") + .arg("--diff-filter=MAR") .arg("--name-only") .arg("--cached") .current_dir(&root) .output()?; if !output.status.success() { bail!( - "`git diff --name-only --cached` exited with {}", + "`git diff --diff-filter=MAR --name-only --cached` exited with {}", output.status ); } -- cgit v1.2.3