Browse Source

Resolved issue #703 add tag info

Signed-off-by: jianlonghuang <jianlong.huang@starfivetech.com>
jianlonghuang 2 years ago
parent
commit
0362ea4407
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/setlocalversion

+ 4 - 0
scripts/setlocalversion

@@ -66,6 +66,10 @@ scm_version()
 			else
 				printf '%s%s' -g $head
 			fi
+		else
+			atag="`git describe 2>/dev/null`"
+			printf '%s%s' - ${atag}
+			#printf '%s%s' -g $head
 		fi
 
 		# Is this git on svn?