Don't use color escape sequences in vc-git-expanded-log-entry

* lisp/vc/vc-git.el (vc-git-expanded-log-entry): Use '--no-color' flag
in git invocation.  (Bug#51262)

Copyright-paperwork-exempt: yes
This commit is contained in:
Jan Synacek 2021-10-18 12:34:38 +02:00 committed by Stefan Kangas
parent d7f595cc89
commit 5c1a575ef4

View file

@ -1323,7 +1323,7 @@ or BRANCH^ (where \"^\" can be repeated)."
(defun vc-git-expanded-log-entry (revision)
(with-temp-buffer
(apply #'vc-git-command t nil nil (list "log" revision "-1" "--"))
(apply #'vc-git-command t nil nil (list "log" revision "-1" "--no-color" "--"))
(goto-char (point-min))
(unless (eobp)
;; Indent the expanded log entry.