]> git.eshelyaron.com Git - emacs.git/commitdiff
Fixed subversion vc error when opening file in new directory (bug#21984).
authorAnders Lindgren <andlind@gmail.com>
Fri, 11 Dec 2015 06:16:02 +0000 (07:16 +0100)
committerAnders Lindgren <andlind@gmail.com>
Fri, 11 Dec 2015 06:16:02 +0000 (07:16 +0100)
* lisp/vc/vc-svn.el (vc-svn-registered): Check if directory exists.

lisp/vc/vc-svn.el

index 62689a3842348cd58ccbc8cd0b52499d68c9e8e3..a15f3413a8df0c69bc518f6d29d8106806b260a0 100644 (file)
@@ -147,7 +147,8 @@ switches."
 (defun vc-svn-registered (file)
   "Check if FILE is SVN registered."
   (setq file (expand-file-name file))
-  (when (vc-svn-root file)
+  (when (and (vc-svn-root file)
+             (file-directory-p (file-name-directory file)))
     (with-temp-buffer
       (cd (file-name-directory file))
       (let* (process-file-side-effects