Skip to content

Commit f92a7e2

Browse files
Prevent errors when commit contains modifications to local variables
1 parent c279ad0 commit f92a7e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

helm-ls-git.el

+5
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,9 @@ object will be passed git rebase i.e. git rebase -i <hash>."
18671867
;;
18681868
;;;###autoload
18691869
(add-to-list 'auto-mode-alist '("/COMMIT_EDITMSG$" . helm-ls-git-commit-mode))
1870+
;; Prevent errors when commit contains modifications to local variables.
1871+
;;;###autoload
1872+
(add-to-list 'inhibit-local-variables-regexps "/COMMIT_EDITMSG$")
18701873

18711874
(defvar helm-ls-git-author-name-history nil)
18721875
(defvar helm-ls-git-author-email-history nil)
@@ -1956,6 +1959,8 @@ Commands:
19561959
;;
19571960
;;;###autoload
19581961
(add-to-list 'auto-mode-alist '("/git-rebase-todo$" . helm-ls-git-rebase-todo-mode))
1962+
;;;###autoload
1963+
(add-to-list 'inhibit-local-variables-regexps "/git-rebase-todo$")
19591964

19601965
(defconst helm-ls-git-rebase-actions
19611966
'(("p" . "pick")

0 commit comments

Comments
 (0)