all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19049: 25.0.50; emacs-repository-get-version doesn't work with git
@ 2014-11-13 22:44 Ulrich Mueller
  2014-11-14  4:01 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 24+ messages in thread
From: Ulrich Mueller @ 2014-11-13 22:44 UTC (permalink / raw)
  To: 19049

The function tries to determine the version by calling:

   git log -1 --pretty=format:%N

According to git documentation, format:%N will output "commit notes"
which will be empty usually. Presumably, this should be format:%H, in
order to output the commit hash. Patch is included below.


From bbe5ea6655c85e15ca7a2538f0c12c03b46fed6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
Date: Thu, 13 Nov 2014 23:43:23 +0100
Subject: [PATCH] emacs-repository-get-version: Fix git argument.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
 lisp/ChangeLog  | 5 +++++
 lisp/version.el | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5c0ec99..e2276d2 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.
+
 2014-11-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 	* net/shr.el (shr-inhibit-images): Add a doc string.
diff --git a/lisp/version.el b/lisp/version.el
index 68b502c..1ea38da 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.1.3






^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-11-14 15:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13 22:44 bug#19049: 25.0.50; emacs-repository-get-version doesn't work with git Ulrich Mueller
2014-11-14  4:01 ` Lars Magne Ingebrigtsen
2014-11-14  4:06   ` Lars Magne Ingebrigtsen
2014-11-14  7:19     ` Ulrich Mueller
2014-11-14  7:39       ` Eli Zaretskii
2014-11-14  8:07         ` Ulrich Mueller
2014-11-14  6:24   ` Eli Zaretskii
2014-11-14 14:12     ` Lars Magne Ingebrigtsen
2014-11-14 14:17       ` Dmitry Gutov
2014-11-14 14:22         ` Lars Magne Ingebrigtsen
2014-11-14 14:25         ` Lars Magne Ingebrigtsen
2014-11-14 14:37           ` Dmitry Gutov
2014-11-14 14:41             ` Lars Magne Ingebrigtsen
2014-11-14 14:52             ` Eli Zaretskii
2014-11-14 14:58               ` Dmitry Gutov
2014-11-14 15:06                 ` Eli Zaretskii
2014-11-14 14:52           ` Eli Zaretskii
2014-11-14 14:50         ` Eli Zaretskii
2014-11-14 14:47       ` Eli Zaretskii
2014-11-14 14:59         ` Lars Magne Ingebrigtsen
2014-11-14 15:11           ` Eli Zaretskii
2014-11-14 15:16             ` Lars Magne Ingebrigtsen
2014-11-14 15:23               ` Eli Zaretskii
2014-11-14 15:26                 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.