diff options
author | DJMcNab <[email protected]> | 2018-12-20 16:45:54 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-20 16:45:54 +0000 |
commit | 134fe4f566d94fd4ca91c6417fab0ae7b3e4275f (patch) | |
tree | 54d5d31d8df65982163e1ff735e1461d672d8376 /crates/tools/src/bin/pre-commit.rs | |
parent | 466885aa5bad53732786380f7579880fe2fd5645 (diff) |
Fix the tests and fix the precommit hook
Diffstat (limited to 'crates/tools/src/bin/pre-commit.rs')
-rw-r--r-- | crates/tools/src/bin/pre-commit.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<()> { | |||
14 | let root = project_root(); | 14 | let root = project_root(); |
15 | let output = Command::new("git") | 15 | let output = Command::new("git") |
16 | .arg("diff") | 16 | .arg("diff") |
17 | .arg("--diff-filter=MAR") | ||
17 | .arg("--name-only") | 18 | .arg("--name-only") |
18 | .arg("--cached") | 19 | .arg("--cached") |
19 | .current_dir(&root) | 20 | .current_dir(&root) |
20 | .output()?; | 21 | .output()?; |
21 | if !output.status.success() { | 22 | if !output.status.success() { |
22 | bail!( | 23 | bail!( |
23 | "`git diff --name-only --cached` exited with {}", | 24 | "`git diff --diff-filter=MAR --name-only --cached` exited with {}", |
24 | output.status | 25 | output.status |
25 | ); | 26 | ); |
26 | } | 27 | } |