]> git.eshelyaron.com Git - emacs.git/commit
; Use $GIT_DIR to find the .git directory inside our hooks
authorJim Porter <jporterbugs@gmail.com>
Mon, 1 May 2023 16:49:39 +0000 (09:49 -0700)
committerJim Porter <jporterbugs@gmail.com>
Mon, 1 May 2023 16:51:56 +0000 (09:51 -0700)
commitd01543f1147b3514fd06ffcdf4be64a6cabe0018
tree25d1f114ef4bc74375670bb82ec098399417d33b
parentaa135e09b6735cd50742b1023fc901feb32e6a52
; Use $GIT_DIR to find the .git directory inside our hooks

This resolves an issue with running the hooks from a worktree.  See
<https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00000.html>.

* build-aux/git-hooks/post-commit:
* build-aux/git-hooks/pre-push: Use $GIT_DIR.
build-aux/git-hooks/post-commit
build-aux/git-hooks/pre-push