mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(cli): deploy git hooks to correct directory
'doom install' now consults git to find the hooks directory, which will work for users who have Doom as a submodule (#5632). Fix #5632
This commit is contained in:
@ -14,8 +14,8 @@
|
||||
|
||||
|
||||
(defun doom-cli--ci-deploy-hooks (&optional noforce)
|
||||
(let ((dir (doom-path doom-emacs-dir ".git/hooks"))
|
||||
(default-directory doom-emacs-dir))
|
||||
(let* ((default-directory doom-emacs-dir)
|
||||
(dir (cdr (doom-call-process "git" "rev-parse" "--git-path" "hooks"))))
|
||||
(make-directory dir 'parents)
|
||||
(dolist (hook '("commit-msg" "pre-push"))
|
||||
(let ((file (doom-path dir hook)))
|
||||
|
Reference in New Issue
Block a user