Skip to content

Commit 41ee0dc

Browse files
authored
Merge branch 'main' into cijothomas/changelog-refacor
2 parents d92784f + 34742d0 commit 41ee0dc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ Open a pull request against the main
7979
repo.
8080

8181
> **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.
82+
> It is recommended to run [pre-commit script](scripts/precommit.sh) to catch any issues locally.
8483
8584
### How to Receive Comments
8685

scripts/precommit.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
cargo update && cargo fmt --all && ./scripts/lint.sh && ./scripts/test.sh
1+
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

Comments
 (0)