mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] setlocalversion: use any tag
@ 2018-03-07  9:34 Gioh Kim
  0 siblings, 0 replies; only message in thread
From: Gioh Kim @ 2018-03-07  9:34 UTC (permalink / raw)
  To: linux-kernel, kstewart, tglx, pombredanne, gregkh; +Cc: Gioh Kim

I googled about '+' mark in kernel version number. Many people also
do not understand why their kernel version includes '+'. And many
people creates an empty .scmversion file to remove it. I also
create the empty .scmversion file whenever I clean the kernel tree.
If setlocalversion script uses both of annotated tag and
lightweight tag, it would be more convenient because it is common to set
lightweight tag during developmene process.

Signed-off-by: Gioh Kim <gi-oh.kim@profitbricks.com>
---
 scripts/setlocalversion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 71f39410691b..9f4309697ea6 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -49,7 +49,7 @@ scm_version()
 
 		# If we are at a tagged commit (like "v2.6.30-rc6"), we ignore
 		# it, because this version is defined in the top level Makefile.
-		if [ -z "`git describe --exact-match 2>/dev/null`" ]; then
+		if [ -z "`git describe --exact-match --tags 2>/dev/null`" ]; then
 
 			# If only the short version is requested, don't bother
 			# running further git commands
-- 
2.14.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-07  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07  9:34 [PATCH] setlocalversion: use any tag Gioh Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®