Fix pre-commit behavior (#9611)

This commit is contained in:
LitoMore 2023-09-25 16:35:47 +08:00 committed by GitHub
parent 823482736c
commit c9979810a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
. "$(dirname $0)/_/husky.sh" . "$(dirname $0)/_/husky.sh"
git stash -q --keep-index
npm run format npm run format
git add . git add .
git stash pop -q