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....@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