vc-log-internal-common: Kill all local variables

* lisp/vc/vc.el (vc-log-internal-common): Kill all local
variables, even permanent-local ones (bug#44698).
This commit is contained in:
Sean Whitton 2025-03-08 17:09:30 +08:00
parent 9bb2fe22db
commit a546225e1a

View file

@ -2990,6 +2990,9 @@ Each function runs in the log output buffer without args.")
rev-buff-func)
(let (retval (buffer (get-buffer-create buffer-name)))
(with-current-buffer buffer
;; Ensure we drop any directory-local variables from the last
;; directory from which a log buffer was generated (bug#44698).
(kill-all-local-variables 'kill-permanent)
(setq-local vc-log-view-type type))
(setq retval (funcall backend-func backend buffer-name type files))
(with-current-buffer buffer