3 . "$(dirname "$0")/testlib.sh"
5 # These tests rely on behavior found in Git versions less than 2.9.0 to perform
6 # themselves, specifically:
7 # - lack of core.hooksPath support
8 ensure_git_version_isnt $VERSION_HIGHER "2.9.0"
10 begin_test "install with unsupported core.hooksPath"
14 repo_name="unsupported-custom-hooks-path"
18 hooks_dir="custom_hooks_dir"
21 git config --local core.hooksPath "$hooks_dir"
23 git lfs install 2>&1 | tee install.log
24 grep "Updated git hooks" install.log
26 [ ! -e "$hooks_dir/pre-push" ]
27 [ -e ".git/hooks/pre-push" ]