]> code.delx.au - gnu-emacs/blobdiff - lisp/vc/vc-git.el
; Merge from origin/emacs-25
[gnu-emacs] / lisp / vc / vc-git.el
index 8568a94bbdbe29f282474781f2e8543e26d47ae0..16cbeef57eabbe9ba687e0f8e1421b4bd4a409fa 100644 (file)
@@ -278,7 +278,7 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
 
 (defun vc-git-mode-line-string (file)
   "Return a string for `vc-mode-line' to put in the mode line for FILE."
-  (let* ((rev (vc-working-revision file))
+  (let* ((rev (vc-working-revision file 'Git))
          (disp-rev (or (vc-git--symbolic-ref file)
                        (substring rev 0 7)))
          (def-ml (vc-default-mode-line-string 'Git file))