Spaces:
Sleeping
Sleeping
Download scripts/setup-git-hooks.sh from ndurner/aileen3-core: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/ndurner/aileen3-core/resolve/main/scripts/setup-git-hooks.sh
- Command line
-
hf download hf://spaces/ndurner/aileen3-core/scripts/setup-git-hooks.sh
-
curl -L -o setup-git-hooks.sh https://huggingface.co/spaces/ndurner/aileen3-core/resolve/main/scripts/setup-git-hooks.sh
273 Bytes
| set -euo pipefail | |
| if ! git status >/dev/null 2>&1; then | |
| echo "error: this script must be run from the repository root" >&2 | |
| exit 1 | |
| fi | |
| git config core.hooksPath .githooks | |
| echo "Configured git to use .githooks/pre-commit (run this once per clone)." | |