From 37d0c418b633f588c8162704630e422afecbf5df Mon Sep 17 00:00:00 2001 From: Alex Bochannek Date: Fri, 11 Oct 2024 20:32:41 -0700 Subject: [PATCH] Remove unnecessary trailing white space from SRC revision number --- lisp/vc/vc-src.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-src.el b/lisp/vc/vc-src.el index 27f58cb3369..ff19b0f7696 100644 --- a/lisp/vc/vc-src.el +++ b/lisp/vc/vc-src.el @@ -222,8 +222,9 @@ vc-src-command (defun vc-src-working-revision (file) "SRC-specific version of `vc-working-revision'." (let ((result (ignore-errors - (with-output-to-string - (vc-src-command standard-output file "list" "-f{1}" "@"))))) + (string-trim-right + (with-output-to-string + (vc-src-command standard-output file "list" "-f{1}" "@")))))) (if (zerop (length result)) "0" result))) ;;; -- 2.39.5 (Apple Git-154)