We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d92784f + 34742d0 commit 41ee0dcCopy full SHA for 41ee0dc
CONTRIBUTING.md
@@ -79,8 +79,7 @@ Open a pull request against the main
79
repo.
80
81
> **Note**
82
-> It is recommended to run [pre-commit script](scripts/precommit.sh) from the root of
83
-the repo to catch any issues locally.
+> It is recommended to run [pre-commit script](scripts/precommit.sh) to catch any issues locally.
84
85
### How to Receive Comments
86
scripts/precommit.sh
@@ -1 +1,7 @@
1
-cargo update && cargo fmt --all && ./scripts/lint.sh && ./scripts/test.sh
+REPO_ROOT=$(dirname $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ))
2
+
3
+pushd "${REPO_ROOT}" > /dev/null
4
5
+cargo update && cargo fmt --all && ./scripts/lint.sh && ./scripts/test.sh
6
7
+popd > /dev/null
0 commit comments