summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc/vc-src.el5
1 files 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 @@ This function differs from `vc-do-command' in that it invokes `vc-src-program'."
(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)))
;;;