[lkml]   [2018]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] setlocalversion: use any tag
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 <>
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
 \ /
  Last update: 2018-03-07 10:35    [W:0.030 / U:4.080 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site