lfs-hook-test/.githooks/post-commit

4 lines
193 B
Bash
Executable file

#!/bin/sh
# LFS post-commit passthrough (required when core.hooksPath = .githooks)
command -v git-lfs >/dev/null 2>&1 || { git lfs version >/dev/null 2>&1 || exit 0; }
git lfs post-commit "$@"