aboutsummaryrefslogtreecommitdiff
path: root/.husky/pre-commit
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-04-27 17:12:50 +0000
committerFuwn <[email protected]>2021-04-27 17:12:50 +0000
commit715ff27395fa0504595165689bed887090e53ebe (patch)
tree4cf54b7b3d7b128a7f040c43d4d656a3303ca16d /.husky/pre-commit
parentfmt: ... (diff)
downloadwhirl-715ff27395fa0504595165689bed887090e53ebe.tar.xz
whirl-715ff27395fa0504595165689bed887090e53ebe.zip
fix: Husky (git hooks) now works
Diffstat (limited to '.husky/pre-commit')
-rw-r--r--.husky/pre-commit4
1 files changed, 4 insertions, 0 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 0000000..58248c1
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+cargo fmt