(emacs-repository-get-version): Call `git log' with proper format argument

Fixes: debbugs:19049

* version.el (emacs-repository-get-version): Call `git log'
command with proper format argument (bug#19049).
This commit is contained in:
Ulrich Müller 2014-11-14 05:03:32 +01:00 committed by Lars Magne Ingebrigtsen
parent 6a079d59b7
commit df33e85a80
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-11-13 Ulrich Müller <ulm@gentoo.org>
* version.el (emacs-repository-get-version): Call `git log'
command with proper format argument (bug#19049).
2014-11-10 Glenn Morris <rgm@gnu.org>
* startup.el (command-line): Handle nil elements in load-path.

View file

@ -188,7 +188,7 @@ only ask the VCS if we cannot find any information ourselves."
(and (eq 0
(condition-case nil
(call-process "git" nil '(t nil) nil "log"
"-1" "--pretty=format:%N")
"-1" "--pretty=format:%H")
(error nil)))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))