Skip to content

Commit

Permalink
fix: Panic occured when exec --next-tag with HEAD with tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Nov 9, 2018
1 parent 594ec82 commit e407b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chglog.go
Expand Up @@ -195,7 +195,7 @@ func (gen *Generator) readVersions(tags []*Tag, first string) ([]*Version, error
})

// Instead of `getTags()`, assign the date to the tag
if isNext {
if isNext && len(commits) != 0 {
tag.Date = commits[0].Author.Date
}
}
Expand Down

0 comments on commit e407b9a

Please sign in to comment.