Skip to contentSkip to conversation

setlocalversion: use any tag

PATCH New Gioh Kim 1 participant 1 message Mar 7, 2018

lore
Share & tools
lore

Gioh Kim

author
#0 lore raw

PATCH 1/1 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.

---
 scripts/setlocalversion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/setlocalversion +1 -1
index 71f39410691b..9f4309697ea6 100755
@@ -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
Signature · 1 line
2.14.1