Commit ba2318b7 authored by Michael Albinus's avatar Michael Albinus
Browse files

* vc-hooks.el (vc-user-login-name):

Let-bind `process-file-side-effects' with nil.
parent 20c76c55
......@@ -436,7 +436,8 @@ For registered files, the possible values are:
"Return the name under which the user accesses the given FILE."
(or (and (eq (string-match tramp-file-name-regexp file) 0)
;; tramp case: execute "whoami" via tramp
(let ((default-directory (file-name-directory file)))
(let ((default-directory (file-name-directory file))
process-file-side-effects)
(with-temp-buffer
(if (not (zerop (process-file "whoami" nil t)))
;; fall through if "whoami" didn't work
......
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