File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def version_from_git(
197
197
tag = read_version_from_file (version_file )
198
198
199
199
if not count_commits_from_version_file :
200
- return tag
200
+ return tag . lstrip ( "v" ) # for tag "v1.0.0" drop leading "v" symbol
201
201
202
202
tag_sha = get_latest_file_commit (version_file )
203
203
else :
@@ -228,5 +228,5 @@ def version_from_git(
228
228
# Ensure local version label only contains permitted characters
229
229
public , sep , local = version .partition ("+" )
230
230
local_sanitized = re .sub (r"[^a-zA-Z0-9.]" , "." , local )
231
- public_sanitized = public .lstrip ("v" ) # for tag "v1.0.0" drop leading "v" symbol
231
+ public_sanitized = public .lstrip ("v" ) # for version "v1.0.0" drop leading "v" symbol
232
232
return public_sanitized + sep + local_sanitized
You can’t perform that action at this time.
0 commit comments