Skip to content

Commit

Permalink
Fix tag cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Dec 19, 2020
1 parent 3d89225 commit 023f723
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/git/repo_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (repo *Repository) getTag(tagID SHA1, name string) (*Tag, error) {
if ok {
log("Hit cache: %s", tagID)
tagClone := *t.(*Tag)
tagClone.Name = name // This is necessary because lightweight tags may have same id
return &tagClone, nil
}

Expand Down

0 comments on commit 023f723

Please sign in to comment.