aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src/bin
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-12-20 18:45:24 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-12-20 18:45:24 +0000
commit057c95d3dd72725f13bfef25827b9034f19ba877 (patch)
tree67f280325c9bf3310b8a85f5d35dad2f2030c8c6 /crates/tools/src/bin
parentc626e4a52688bfc63b9d29ed89025b61e00d4326 (diff)
parent0ffba1e8965a75d2c07a053a0803a186fb7fa1f7 (diff)
Merge #299
299: Ensure that the parser errors or not for the parser tests r=matklad a=DJMcNab Co-authored-by: DJMcNab <[email protected]>
Diffstat (limited to 'crates/tools/src/bin')
-rw-r--r--crates/tools/src/bin/pre-commit.rs3
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 }