https://github.com/ray-project/ray
Raw File
Tip revision: 210597d2368b74b3b2a050194074231e64271b22 authored by dependabot[bot] on 14 March 2024, 20:39:13 UTC
Bump follow-redirects from 1.15.2 to 1.15.6 in /dashboard/client
Tip revision: 210597d
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