https://github.com/ray-project/ray
Raw File
Tip revision: b63d2c1e419f8150c674c31d974a841c6415110c authored by khluu on 25 March 2024, 20:02:36 UTC
not add forge path
Tip revision: b63d2c1
setup_hooks.sh
#!/bin/sh
set -eu

# This stops git rev-parse from failing if we run this from the .git directory
builtin cd "$(dirname "${BASH_SOURCE:-$0}")"

ROOT="$(git rev-parse --show-toplevel)"
builtin cd "${ROOT}"

# If we change the lint location we should modify the path of lint relative .git
RELATIVE_PATH="../../ci/lint"

ln -sf "${RELATIVE_PATH}/pre-push" "${ROOT}/.git/hooks/pre-push"
ln -sf "${RELATIVE_PATH}/prepare-commit-msg" "${ROOT}/.git/hooks/prepare-commit-msg"

back to top