summaryrefslogtreecommitdiff
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index c73c458fcb7..7f3a39d55ab 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -444,7 +444,10 @@ The difference to vc-do-command is that this function always invokes `git'."
(apply 'vc-do-command buffer okstatus "git" file-or-list flags))
(defun vc-git--call (buffer command &rest args)
- (apply 'call-process "git" nil buffer nil command args))
+ ;; We don't need to care the arguments. If there is a file name, it
+ ;; is always a relative one. This works also for remote
+ ;; directories.
+ (apply 'process-file "git" nil buffer nil command args))
(defun vc-git--out-ok (command &rest args)
(zerop (apply 'vc-git--call '(t nil) command args)))