git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] GIT-VERSION-GEN: Do not require tags to be annotated
@ 2013-09-06 20:10 Sebastian Schuberth
  2013-09-06 21:40 ` Junio C Hamano
  2013-09-06 22:34 ` Kyle J. McKay
  0 siblings, 2 replies; 16+ messages in thread
From: Sebastian Schuberth @ 2013-09-06 20:10 UTC (permalink / raw)
  To: git

For custom builds of Git it sometimes is inconvenient to annotate tags
because there simply is nothing to say, so do not require an annotation.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 GIT-VERSION-GEN | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index b444c18..68b61e3 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -12,7 +12,7 @@ if test -f version
 then
 	VN=$(cat version) || VN="$DEF_VER"
 elif test -d ${GIT_DIR:-.git} -o -f .git &&
-	VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
+	VN=$(git describe --tags --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
 	case "$VN" in
 	*$LF*) (exit 1) ;;
 	v[0-9]*)
-- 
1.8.3.msysgit.1.3.g5b82b42.dirty

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

end of thread, other threads:[~2013-09-10 19:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 20:10 [PATCH] GIT-VERSION-GEN: Do not require tags to be annotated Sebastian Schuberth
2013-09-06 21:40 ` Junio C Hamano
2013-09-07  0:37   ` Felipe Contreras
     [not found]     ` <CAJDDKr4JBeccwuD4PVq0ryO27Eyfz+yUAHT7xm0Dkh19SZpV4g@mail.gmail.com>
2013-09-08  0:58       ` Felipe Contreras
2013-09-07 12:28   ` Sebastian Schuberth
2013-09-07 16:10     ` Junio C Hamano
2013-09-07 19:47       ` Sebastian Schuberth
2013-09-08 17:41         ` Junio C Hamano
2013-09-09 23:21           ` Felipe Contreras
2013-09-10  8:06           ` Sebastian Schuberth
2013-09-10  9:53             ` Felipe Contreras
2013-09-10 15:59             ` Junio C Hamano
2013-09-10 19:45               ` Sebastian Schuberth
2013-09-08  0:54       ` Felipe Contreras
2013-09-06 22:34 ` Kyle J. McKay
2013-09-07 12:26   ` Sebastian Schuberth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).