]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-do-command: Fix last part of 'full-command'
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 26 Jul 2025 12:25:27 +0000 (13:25 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Jul 2025 15:25:27 +0000 (17:25 +0200)
* lisp/vc/vc-dispatcher.el (vc-do-command): Don't append " ." to
'full-command' when FILES is nil because the command we actually
run doesn't have "." as a final argument in that case.

(cherry picked from commit 8897c15251a4374145083d2995a61fae2806238f)

lisp/vc/vc-dispatcher.el

index 1674251d1703c72b0c54a094d054cbf5c0159c01..139ba5aa70a3e591cbdd712e636b69df7720ded8 100644 (file)
@@ -421,7 +421,7 @@ case, and the process object in the asynchronous case."
                            (substring command 0 -1)
                          command)
                        " " (vc-delistify flags)
-                       " " (vc-delistify files)))
+                       (and files (concat " " (vc-delistify files)))))
                (squeezed (remq nil flags))
               (inhibit-read-only t)
               (status 0))