mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
vc-working-revision: Bind default-directory
* lisp/vc/vc-hooks.el (vc-working-revision): Bind default-directory to be on the safe side. Suggested by Ilya Ostapyshyn (https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02301.html).
This commit is contained in:
parent
00be23c2af
commit
94f01fe206
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ status of this file. Otherwise, the value returned is one of:
|
|||
"Return the repository version from which FILE was checked out.
|
||||
If FILE is not registered, this function always returns nil."
|
||||
(or (vc-file-getprop file 'vc-working-revision)
|
||||
(progn
|
||||
(let ((default-directory (file-name-directory file)))
|
||||
(setq backend (or backend (vc-backend file)))
|
||||
(when backend
|
||||
(vc-file-setprop file 'vc-working-revision
|
||||
|
|
|
|||
Loading…
Reference in a new issue