]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not use error messages as list of ignored files in vc-svn
authorWolfgang Scherer <wolfgang.scherer@gmx.de>
Sun, 15 Sep 2019 13:14:44 +0000 (15:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Sep 2019 13:14:44 +0000 (15:14 +0200)
* lisp/vc/vc-svn.el: (vc-svn-ignore-completion-table) Ignore buffer
contents, if exit status is not 0.  Split buffer by lines (bug#37214).

lisp/vc/vc-svn.el

index 3c50c8fff6475289e867200f3fcbc1128f0803dd..88a280d10f3b8d82f59c172784bfa06135cc3878 100644 (file)
@@ -366,8 +366,9 @@ FILE is a file wildcard, relative to the root directory of DIRECTORY."
 (defun vc-svn-ignore-completion-table (directory)
   "Return the list of ignored files in DIRECTORY."
   (with-temp-buffer
-    (vc-svn-command t t nil "propget" "svn:ignore" (expand-file-name directory))
-    (split-string (buffer-string))))
+    (when (zerop (vc-svn-command
+                  t t nil "propget" "svn:ignore" (expand-file-name directory)))
+      (split-string (buffer-string) "\n"))))
 
 (defun vc-svn-find-admin-dir (file)
   "Return the administrative directory of FILE."