aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/vc-hooks.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 2ca9d3e620c..ce72a49b955 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -498,7 +498,7 @@ status of this file. Otherwise, the value returned is one of:
498 "Return the repository version from which FILE was checked out. 498 "Return the repository version from which FILE was checked out.
499If FILE is not registered, this function always returns nil." 499If FILE is not registered, this function always returns nil."
500 (or (vc-file-getprop file 'vc-working-revision) 500 (or (vc-file-getprop file 'vc-working-revision)
501 (progn 501 (let ((default-directory (file-name-directory file)))
502 (setq backend (or backend (vc-backend file))) 502 (setq backend (or backend (vc-backend file)))
503 (when backend 503 (when backend
504 (vc-file-setprop file 'vc-working-revision 504 (vc-file-setprop file 'vc-working-revision