aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/vc-git.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 03afce51709..4ea7ea53442 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1628,8 +1628,15 @@ The difference to vc-do-command is that this function always invokes
1628 (or coding-system-for-read vc-git-log-output-coding-system)) 1628 (or coding-system-for-read vc-git-log-output-coding-system))
1629 (coding-system-for-write 1629 (coding-system-for-write
1630 (or coding-system-for-write vc-git-commits-coding-system)) 1630 (or coding-system-for-write vc-git-commits-coding-system))
1631 (process-environment (cons "PAGER=" process-environment))) 1631 (process-environment
1632 (push "GIT_DIR" process-environment) 1632 (append
1633 `("GIT_DIR"
1634 "PAGER="
1635 ;; Avoid repository locking during background operations
1636 ;; (bug#21559).
1637 ,@(when revert-buffer-in-progress-p
1638 '("GIT_OPTIONAL_LOCKS=0")))
1639 process-environment)))
1633 (apply 'process-file vc-git-program nil buffer nil command args))) 1640 (apply 'process-file vc-git-program nil buffer nil command args)))
1634 1641
1635(defun vc-git--out-ok (command &rest args) 1642(defun vc-git--out-ok (command &rest args)