]> code.delx.au - gnu-emacs/commitdiff
Tweak earlier version.el change
authorGlenn Morris <rgm@gnu.org>
Wed, 22 Jan 2014 21:14:34 +0000 (16:14 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 22 Jan 2014 21:14:34 +0000 (16:14 -0500)
lisp/version.el

index 4f5bb67585af560503ed5bcfce6f1cb190611bdb..25b7f3e3c532a243ab755c4caeeb80d0ac6e5b92 100644 (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))))))))