aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/version.el7
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."
186 (with-temp-buffer 186 (with-temp-buffer
187 (let ((default-directory (file-name-as-directory dir))) 187 (let ((default-directory (file-name-as-directory dir)))
188 (and (eq 0 188 (and (eq 0
189 (ignore-errors 189 (condition-case nil
190 (call-process "git" nil '(t nil) nil "log" 190 (call-process "git" nil '(t nil) nil "log"
191 "-1" "--pretty=format:%N"))) 191 "-1" "--pretty=format:%N")
192 (error nil)))
192 (not (zerop (buffer-size))) 193 (not (zerop (buffer-size)))
193 (replace-regexp-in-string "\n" "" (buffer-string)))))))) 194 (replace-regexp-in-string "\n" "" (buffer-string))))))))
194 195