summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-src.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc/vc-src.el')
-rw-r--r--lisp/vc/vc-src.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc/vc-src.el b/lisp/vc/vc-src.el
index d0787b033ee..520708c7eb0 100644
--- a/lisp/vc/vc-src.el
+++ b/lisp/vc/vc-src.el
@@ -159,6 +159,7 @@ For a description of possible values, see `vc-check-master-templates'."
"SRC-specific version of `vc-state'."
(let*
((status nil)
+ (default-directory (file-name-directory file))
(out
(with-output-to-string
(with-current-buffer
@@ -168,7 +169,7 @@ For a description of possible values, see `vc-check-master-templates'."
(condition-case nil
(process-file
vc-src-program nil t nil
- "status" "-a" file)
+ "status" "-a" (file-relative-name file))
(error nil)))))))
(when (eq 0 status)
(when (null (string-match "does not exist or is unreadable" out))