stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] git-describe does not honor 0.9.8 tag


From: Daniel Borchmann
Subject: [STUMP] git-describe does not honor 0.9.8 tag
Date: Mon, 24 Feb 2014 09:38:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi,

it seems that the 0.9.8 tag is not honored by git-describe, and thus
also not by Stump.  If I am on master, then I get

  $ git describe
  0.9.7-160-g67ff979

It seems that 0.9.8 is not an annotated tag, and thus is ignored by
git-describe.  To fix this one could do

  $ git describe --tags
  0.9.8-3-g67ff979

The attached patch fixed this issue for me.

Best,

  Daniel

-- 
Daniel Borchmann                                   http://daniel.kxpq.de
GPG (Mail)            0849 473E 6BF0 B504 DF0B  D640 455E 3610 01FF 778F
.
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
>From 11ba451fe25f414297017a78e208dd98f59af54e Mon Sep 17 00:00:00 2001
From: Daniel Borchmann <address@hidden>
Date: Mon, 24 Feb 2014 09:36:55 +0100
Subject: [PATCH] Make git-describe also recognize not-annotated tags

Signed-off-by: Daniel Borchmann <address@hidden>
---
 version.lisp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/version.lisp b/version.lisp
index 2dd301f..f9f050f 100644
--- a/version.lisp
+++ b/version.lisp
@@ -34,7 +34,7 @@
        (if git-dir
            (string-trim '(#\Newline)
                         (run-shell-command
-                         (format nil "GIT_DIR=~a git describe" git-dir) t))
+                         (format nil "GIT_DIR=~a git describe --tags" git-dir) 
t))
            (asdf:component-version sys)))
   " Compiled On "
   (format-expand *time-format-string-alist*
-- 
1.9.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]