From: Glenn Morris Date: Wed, 22 Jan 2014 21:14:34 +0000 (-0500) Subject: Tweak earlier version.el change X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~289 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a5f2a870bc0b4eec8904c9280f89ffa66b6b41bc;p=emacs.git Tweak earlier version.el change --- diff --git a/lisp/version.el b/lisp/version.el index 4f5bb67585a..25b7f3e3c53 100644 --- a/lisp/version.el +++ b/lisp/version.el @@ -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))))))))