Commit df33e85a authored by Ulrich Müller's avatar Ulrich Müller Committed by Lars Magne Ingebrigtsen

(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).
parent 6a079d59
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.
......
......@@ -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))))))))
......
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