From 70d064dab74ac7928eeacb61c03605b99de995a9 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 8 Oct 2024 02:47:15 +0300 Subject: [PATCH] poject--vc-list-files: Check that the current Emacs is 31+ * lisp/progmodes/project.el (project--vc-list-files): Check that the current Emacs is 31+, to avoid breakage on remote hosts with older Git (bug#73320). --- lisp/progmodes/project.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b2f18da8925..18613e9ec33 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -674,7 +674,8 @@ See `project-vc-extra-root-markers' for the marker value format.") (submodules (project--git-submodules)) files) (setq args (append args - (and (version<= "2.35" (vc-git--program-version)) + (and (<= 31 emacs-major-version) + (version<= "2.35" (vc-git--program-version)) '("--sparse")) (and include-untracked '("-o")))) (when extra-ignores