1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-09 08:21:30 -07:00

project-files<vc>: Fix 'void-function vc-git--program-version'

* lisp/progmodes/project.el (project-try-vc--search): Re-add the
loading of vc-<backend> feature just removed from `project-files'.
This commit is contained in:
Dmitry Gutov 2026-01-02 02:50:46 +02:00
parent 17ddfd66e6
commit c678963fb1

View file

@ -638,6 +638,8 @@ See `project-vc-extra-root-markers' for the marker value format.")
(let* ((parent (file-name-directory (directory-file-name root))))
(setq root (vc-call-backend 'Git 'root parent))))
(when root
(when backend
(require (intern (concat "vc-" (downcase (symbol-name backend))))))
(when (not backend)
(let* ((project-vc-extra-root-markers nil)
;; Avoid submodules scan.