Fix the tests and fix the precommit hook

This commit is contained in:
DJMcNab
2018-12-20 16:45:54 +00:00
parent 466885aa5b
commit 134fe4f566
255 changed files with 210 additions and 561 deletions

View File

@@ -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
);
}