mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-06 20:49:33 +00:00
* vc-hooks.el (vc-user-login-name):
Let-bind `process-file-side-effects' with nil.
This commit is contained in:
parent
20c76c553c
commit
ba2318b74b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user