1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

Tweak earlier version.el change

This commit is contained in:
Glenn Morris 2014-01-22 16:14:34 -05:00
parent 80efa207d4
commit a5f2a870bc

View file

@ -186,9 +186,10 @@ only ask the VCS if we cannot find any information ourselves."
(with-temp-buffer
(let ((default-directory (file-name-as-directory dir)))
(and (eq 0
(ignore-errors
(call-process "git" nil '(t nil) nil "log"
"-1" "--pretty=format:%N")))
(condition-case nil
(call-process "git" nil '(t nil) nil "log"
"-1" "--pretty=format:%N")
(error nil)))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))