summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc/vc.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 05109256bd1..4688137d923 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1014,6 +1014,10 @@ responsible for the given file."
(lambda (backend)
(when-let ((dir (vc-call-backend
backend 'responsible-p file)))
+ ;; We run DIR through `expand-file-name'
+ ;; so that abbreviated directories, such
+ ;; as "~/", wouldn't look "less specific"
+ ;; due to their artificially shorter length.
(cons backend (expand-file-name dir))))
vc-handled-backends))))
;; Just a single response (or none); use it.