d56b5aa73a
This commit gives the `lfs.Hook` knowledge of the new `core.hooksPath` configuration value that was introduce in Git 2.9.0. When `core.HooksPath` is found in the Git configuration AND is supported (i.e., installed Git binary has a version greater than or equal to "2.9.0"), `git-lfs install` will place new hooks in that directory. If the `core.hooksPath` is specified, but the installed verison of Git does NOT support it, then it will be ignored and installed in `.git/hooks` as per usual. To test this behavior, two new shell tests were added: - One that runs on Git >= 2.9.0, and tests that `core.hooksPath` is respected - One that runs on Git < 2.9.0, and tests that `core.hooksPath` is ignored Unfortunately, our current testing framework does not support skipping individual tests, only skipping entire files, so two new shell test files were added. Resolves github/git-lfs#1407. |
||
---|---|---|
.. | ||
attribute.go | ||
batcher_test.go | ||
batcher.go | ||
download_queue.go | ||
extension.go | ||
hook.go | ||
lfs_test.go | ||
lfs.go | ||
pointer_clean.go | ||
pointer_smudge.go | ||
pointer_test.go | ||
pointer.go | ||
scanner_git_test.go | ||
scanner_test.go | ||
scanner.go | ||
setup.go | ||
transfer_queue.go | ||
upload_queue.go | ||
util_generic.go | ||
util_test.go | ||
util.go |