summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFlorian Haas <florian@citynetwork.eu>2021-06-16 20:51:59 +0200
committerFlorian Haas <florian@citynetwork.eu>2021-06-21 16:24:11 +0200
commitc40eb491e651780e31e7e09d27d5cf333804cf19 (patch)
tree42d96df1d51db30f255727a28a6c5611ba6e6b99 /doc
parentd0d3da82f53efd46b2b1ed12d5a4e02d1bf76470 (diff)
downloadgit-review-c40eb491e651780e31e7e09d27d5cf333804cf19.tar.gz
Support the Git "core.hooksPath" option when dealing with hook scripts
Previously, git-review would assume that the Git repository's hook directory is .git/hooks, relative to the root of the checkout. This assumption breaks if the user has set the core.hooksPath option on the repository (or, for that matter, in ~/.gitconfig or /etc/gitconfig). core.hooksPath can either be set to an absolute path, in which case it is to be interpreted as-is, or to a relative path, in which case it should be interpreted as relative to the root of the checkout. Introduce a new convenience function to suss out the correct path, and use it in places where the reference to .git/hooks was previously hard-coded. Reference: https: //git-scm.com/docs/git-config#Documentation/git-config.txt-corehooksPath Depends-on: I0f0f44e57a100420d8e6d2eaec7dbb5d77b654af Change-Id: Id8a3ac464ff75e6d8207f198089f018cc790eca5
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions