From 7169391ddb735892a8463aa96407e0448a3820a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Fri, 14 Nov 2014 05:03:32 +0100 Subject: [PATCH] (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). --- lisp/ChangeLog | 5 +++++ lisp/version.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8238dc5a36d..7674e78856c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-13 Ulrich Müller + + * version.el (emacs-repository-get-version): Call `git log' + command with proper format argument (bug#19049). + 2014-11-14 Lars Magne Ingebrigtsen * bindings.el (search-map): Bind M-s M-s to `eww-search-words'. 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)))))))) -- 2.39.5