Skip to content

Commit 000b1bb

Browse files
committed
Adjust commit hooks to reapply unstaged changes and fail early in pre-commit checks
1 parent e709b90 commit 000b1bb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

post-commit.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
git stash pop

tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
2+
set -e
33
cargo fmt --all --check
44
cargo test --quiet --locked
55
cargo clippy -- --deny warnings

0 commit comments

Comments
 (0)