mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 10:25:24 +00:00
fix: Panic occured when exec --next-tag with HEAD with tag
This commit is contained in:
parent
594ec82eaf
commit
e407b9a96e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue