Skip to content

Commit

Permalink
only append commit number for master
Browse files Browse the repository at this point in the history
  • Loading branch information
sstarcher committed Feb 26, 2019
1 parent fdd81ab commit 1434b6a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ func (c *Chart) Version() (*string, error) {
}
}

if commits != 0 {
if prerel != "" {
prerel += "."
if branch == "master" {
if commits != 0 {
if prerel != "" {
prerel += "."
}
prerel += strconv.Itoa(commits)
}
prerel += strconv.Itoa(commits)
}

if prerel != "" {
Expand Down

0 comments on commit 1434b6a

Please sign in to comment.