From 4518f21d258b59d47069c6e6a66fdab2f6826ee0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 26 Jul 2025 13:25:27 +0100 Subject: [PATCH] vc-do-command: Fix last part of 'full-command' * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 1674251d170..139ba5aa70a 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -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)) -- 2.39.5