From a5f2a870bc0b4eec8904c9280f89ffa66b6b41bc Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 22 Jan 2014 16:14:34 -0500 Subject: [PATCH] Tweak earlier version.el change --- lisp/version.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)))))))) -- 2.39.2