]> git.eshelyaron.com Git - emacs.git/commitdiff
poject--vc-list-files: Check that the current Emacs is 31+
authorDmitry Gutov <dmitry@gutov.dev>
Mon, 7 Oct 2024 23:47:15 +0000 (02:47 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Oct 2024 17:34:56 +0000 (19:34 +0200)
* 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

index 7d8b41c57a7d8e5ba899e207dc3516081b5780f0..7c5de25f4a75df58d8aa6132c206773fc9f82450 100644 (file)
@@ -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