Commit 10331478 authored by Andreas Schwab's avatar Andreas Schwab

Use git rev-parse to get repository version

* version.el (emacs-repository-get-version): Use git rev-parse
instead of git log.
parent 899a5a98
2014-11-15 Andreas Schwab <schwab@linux-m68k.org>
* version.el (emacs-repository-get-version): Use git rev-parse
instead of git log.
2014-11-15 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-indent-calculate-levels): Fix
......
......@@ -187,8 +187,8 @@ only ask the VCS if we cannot find any information ourselves."
(let ((default-directory (file-name-as-directory dir)))
(and (eq 0
(condition-case nil
(call-process "git" nil '(t nil) nil "log"
"-1" "--pretty=format:%H")
(call-process "git" nil '(t nil) nil "rev-parse"
"HEAD")
(error nil)))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment