aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/bin/pre-commit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/bin/pre-commit.rs')
-rw-r--r--xtask/src/bin/pre-commit.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/bin/pre-commit.rs b/xtask/src/bin/pre-commit.rs
index cc6ccb25e..44507fb74 100644
--- a/xtask/src/bin/pre-commit.rs
+++ b/xtask/src/bin/pre-commit.rs
@@ -19,10 +19,10 @@ fn update_staged() -> Result<()> {
19 .current_dir(&root) 19 .current_dir(&root)
20 .output()?; 20 .output()?;
21 if !output.status.success() { 21 if !output.status.success() {
22 Err(format!( 22 anyhow::bail!(
23 "`git diff --diff-filter=MAR --name-only --cached` exited with {}", 23 "`git diff --diff-filter=MAR --name-only --cached` exited with {}",
24 output.status 24 output.status
25 ))?; 25 );
26 } 26 }
27 for line in String::from_utf8(output.stdout)?.lines() { 27 for line in String::from_utf8(output.stdout)?.lines() {
28 run(&format!("git update-index --add {}", root.join(line).to_string_lossy()), ".")?; 28 run(&format!("git update-index --add {}", root.join(line).to_string_lossy()), ".")?;