Skip to content

Commit a6a512f

Browse files
authored
Fix pre commit (apache#4990)
* Fix pre-commit.sh script * Fix
1 parent a33d42f commit a6a512f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pre-commit.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# This file is git pre-commit hook.
2121
#
2222
# Soft link it as git hook under top dir of apache arrow git repository:
23-
# $ ln -s ../../rust/pre-commit.sh .git/hooks/pre-commit
23+
# $ ln -s ../../pre-commit.sh .git/hooks/pre-commit
2424
#
2525
# This file be run directly:
2626
# $ ./pre-commit.sh
@@ -37,14 +37,12 @@ function BYELLOW() {
3737
echo "\033[1;33m$@\033[0m"
3838
}
3939

40-
RUST_DIR="rust"
41-
4240
# env GIT_DIR is set by git when run a pre-commit hook.
4341
if [ -z "${GIT_DIR}" ]; then
4442
GIT_DIR=$(git rev-parse --show-toplevel)
4543
fi
4644

47-
cd ${GIT_DIR}/${RUST_DIR}
45+
cd ${GIT_DIR}
4846

4947
NUM_CHANGES=$(git diff --cached --name-only . |
5048
grep -e ".*/*.rs$" |

0 commit comments

Comments
 (0)