* 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)
(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