diff options
Diffstat (limited to 'lisp/version.el')
-rw-r--r-- | lisp/version.el | 7 |
1 files 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)))))))) |