git-lfs/lfs
Taylor Blau d56b5aa73a lfs/hook: teach lfs.Hook about core.hooksPath
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.
2016-08-01 15:47:54 -06:00
..
attribute.go Use --global to determine if needs to set a global attribute 2015-10-21 16:36:31 +01:00
batcher_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
batcher.go Make the batcher more general and not specific to Transferable 2016-05-18 16:54:54 +01:00
download_queue.go Add transfer adapter negotiation to batch api request / response 2016-06-02 10:05:02 +01:00
extension.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
hook.go lfs/hook: teach lfs.Hook about core.hooksPath 2016-08-01 15:47:54 -06:00
lfs_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
lfs.go Sort transfers in env so results are deterministic 2016-07-27 14:42:00 +01:00
pointer_clean.go Move CopyWithCallback into general tools for re-use 2016-05-19 15:12:46 +01:00
pointer_smudge.go Better error handling when initialising adapters 2016-07-13 14:28:52 +01:00
pointer_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
pointer.go Refactor errors and credentials into own packages to break cycles 2016-05-16 15:06:02 +01:00
scanner_git_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
scanner_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
scanner.go Merge branch 'master' into transfers-p5-ext-process 2016-07-15 11:56:33 +01:00
setup.go Add git lfs update --manual option & promote it on hook install fail 2016-04-26 12:04:55 +01:00
transfer_queue.go Better error handling when initialising adapters 2016-07-13 14:28:52 +01:00
upload_queue.go Add transfer adapter negotiation to batch api request / response 2016-06-02 10:05:02 +01:00
util_generic.go Fix non linux with cgo build condition 2016-01-30 00:58:55 +03:00
util_test.go Merge branch 'master' into experimental/transfer-features 2016-05-31 09:30:22 +01:00
util.go Refactor StringSet into tools package 2016-07-13 14:28:52 +01:00