]> git.eshelyaron.com Git - emacs.git/commitdiff
(emacs-repository-get-version): Call `git log' with proper format argument
authorUlrich Müller <ulm@gentoo.org>
Fri, 14 Nov 2014 04:03:32 +0000 (05:03 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 14 Nov 2014 14:21:31 +0000 (15:21 +0100)
Fixes: debbugs:19049
* version.el (emacs-repository-get-version): Call `git log'
command with proper format argument (bug#19049).

lisp/ChangeLog
lisp/version.el

index 33777c5afa4403009caa67384fd903afac01f8b5..ce4221f779585db497ebf38263695da65f454d29 100644 (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.
index 68b502ce451dc21a9dc66a41472b4f9c84b11ddc..1ea38da9caefc376c9c51fb6e7dc1be1c2254853 100644 (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))))))))