diff --git a/hooks/pre-commit b/hooks/pre-commit index 6d4e66b..0d764d6 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -1,4 +1,7 @@ #!/bin/bash -$(git rev-parse --show-toplevel)/format.sh +BASE_DIR=$(git rev-parse --show-toplevel) + +${BASE_DIR}/format.sh +${BASE_DIR}/test.sh git update-index --again \ No newline at end of file