Notify the user if we errors when querying for registered git files

* lisp/vc/vc-git.el (vc-git-registered): Notify the user when
something fails here (bug#18481).
This commit is contained in:
Emilio Lopes 2020-08-13 10:01:00 +02:00 committed by Lars Ingebrigtsen
parent 97896e68f9
commit 991e145450

View file

@ -243,7 +243,7 @@ toggle display of the entire list."
;; path specs.
;; See also: http://marc.info/?l=git&m=125787684318129&w=2
(name (file-relative-name file dir))
(str (ignore-errors
(str (with-demoted-errors "Error: %S"
(cd dir)
(vc-git--out-ok "ls-files" "-c" "-z" "--" name)
;; If result is empty, use ls-tree to check for deleted