Skip to content

Commit

Permalink
git: remove leading v if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Jun 8, 2021
1 parent ca78f34 commit 069a901
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,13 @@ query {
}

if !version.IsVersionIgnored(config, githubVersion.Name) {
versionName := githubVersion.Name
if versionName[0:1] == "v" {
versionName = versionName[1:]
}

versions = append(versions, version.Version{
Version: githubVersion.Name,
Version: versionName,
Tarball: githubVersion.Target.Target.TarballUrl,
Date: date,
Source: "git",
Expand Down

0 comments on commit 069a901

Please sign in to comment.