From 46dd9ddd49560addc408c5bb8fbea378e83ef48b 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). (cherry picked from commit 70d064dab74ac7928eeacb61c03605b99de995a9) --- 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 7d8b41c57a7..7c5de25f4a7 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -668,7 +668,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 -- 2.39.5