mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Merge pull request #4748 from nbfalcon/bugfix-security/git-commit-locals-predicates
`git-commit`: fix variable predicates
This commit is contained in:
@ -9,8 +9,11 @@
|
||||
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
||||
|
||||
;; Don't complain when these variables are set in file/local vars
|
||||
(put 'git-commit-major-mode 'safe-local-variable 'symbolp)
|
||||
(put 'git-commit-summary-max-length 'safe-local-variable 'symbolp)
|
||||
(put 'git-commit-major-mode 'safe-local-variable
|
||||
(lambda (x)
|
||||
(memq x '(git-commit-elisp-text-mode
|
||||
text-mode fundamental-mode org-mode markdown-mode))))
|
||||
(put 'git-commit-summary-max-length 'safe-local-variable 'numberp)
|
||||
|
||||
;; In case the user is using `bug-reference-mode'
|
||||
(map! :when (fboundp 'bug-reference-mode)
|
||||
|
Reference in New Issue
Block a user