Files
git-obs-hooks/scripts/post-checkout.d/git-lfs.sh
Matěj Cepl 56cbdc0ed9 feat(install): add support for git-lfs
With git-obs-hooks replacing all .githooks, we need to add
support for git-lfs.
2025-04-28 08:45:57 +02:00

4 lines
360 B
Bash
Executable File

#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
git lfs post-checkout "$@"