summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-11-14 05:03:32 +0100
committerLars Magne Ingebrigtsen <larsi@gnus.org>2014-11-14 15:21:31 +0100
commitdf33e85a807656a13b3020d8f65d5da728bb808e (patch)
tree9af170db49db58f95b847c355c7e0e80d197aeef /lisp
parent6a079d59b7f5e9ef2a2dc7af18debc1c714ede89 (diff)
downloademacs-df33e85a807656a13b3020d8f65d5da728bb808e.tar.gz
(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).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/version.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 33777c5afa4..ce4221f7795 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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.
diff --git a/lisp/version.el b/lisp/version.el
index 68b502ce451..1ea38da9cae 100644
--- a/lisp/version.el
+++ b/lisp/version.el
@@ -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))))))))