summaryrefslogtreecommitdiff
path: root/lisp/version.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/version.el')
-rw-r--r--lisp/version.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/version.el b/lisp/version.el
index d1d6c4c216b..1a3265b55b2 100644
--- a/lisp/version.el
+++ b/lisp/version.el
@@ -185,8 +185,10 @@ only ask the VCS if we cannot find any information ourselves."
(message "Waiting for git...")
(with-temp-buffer
(let ((default-directory (file-name-as-directory dir)))
- (and (zerop (call-process "git" nil '(t nil) nil "log"
- "-1" "--pretty=format:%N"))
+ (and (eq 0
+ (ignore-errors
+ (call-process "git" nil '(t nil) nil "log"
+ "-1" "--pretty=format:%N")))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))