diff options
author | Glenn Morris <rgm@gnu.org> | 2014-01-22 16:14:34 -0500 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-01-22 16:14:34 -0500 |
commit | a5f2a870bc0b4eec8904c9280f89ffa66b6b41bc (patch) | |
tree | 396715fa563e8fe724230bbfb62245d9c67ca3c1 /lisp/version.el | |
parent | 80efa207d4026b98967c96a84ade29940f48403b (diff) | |
download | emacs-a5f2a870bc0b4eec8904c9280f89ffa66b6b41bc.tar.gz |
Tweak earlier version.el change
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)))))))) |