Commit 0ed9cfa7 authored by Robert Pluim's avatar Robert Pluim

vc-dir: ensure we don't use a pager with git

* lisp/vc/vc-git.el (vc-git--call): Call git with '--no-pager' to
avoid hangs caused by remote pager settings (Bug#38688).
parent 37e0d00c
Pipeline #4543 passed with stage
in 54 minutes and 6 seconds
......@@ -1785,13 +1785,12 @@ The difference to vc-do-command is that this function always invokes
;; Avoid repository locking during background operations
;; (bug#21559).
,@(when revert-buffer-in-progress-p
(apply 'process-file vc-git-program nil buffer nil command args)))
(apply 'process-file vc-git-program nil buffer nil "--no-pager" command args)))
(defun vc-git--out-ok (command &rest args)
(zerop (apply 'vc-git--call '(t nil) command args)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment