aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-03-05 21:56:43 +0100
committerMichael Muré <batolettre@gmail.com>2020-03-05 21:57:55 +0100
commite0a702f41d844cef3e0d7bd0f9e986408fdfbe9a (patch)
tree7b5e4638cd467a900b1ade29e3be333d2611e857 /cache
parent17ca28c2dff972e4721f4803b1234f664bcfa353 (diff)
downloadgit-bug-e0a702f41d844cef3e0d7bd0f9e986408fdfbe9a.tar.gz
cache: fix missing login in LegacyAuthorExcerpt causing panic
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_excerpt.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index d0d0aa60..36c7dcfe 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -95,7 +95,8 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
e.AuthorId = snap.Author.Id()
case *identity.Bare:
e.LegacyAuthor = LegacyAuthorExcerpt{
- Name: snap.Author.Name(),
+ Login: snap.Author.Login(),
+ Name: snap.Author.Name(),
}
default:
panic("unhandled identity type")