+1
-1
appview/pages/pages.go
+1
-1
appview/pages/pages.go
+1
-1
appview/pages/templates/repo/index.html
+1
-1
appview/pages/templates/repo/index.html
+5
-1
appview/state/repo.go
+5
-1
appview/state/repo.go
···
137
137
RepoIndexResponse: result,
138
138
CommitsTrunc: commitsTrunc,
139
139
TagsTrunc: tagsTrunc,
140
-
ForkInfo: *forkInfo,
140
+
ForkInfo: forkInfo,
141
141
BranchesTrunc: branchesTrunc,
142
142
EmailToDidOrHandle: EmailToDidOrHandle(s, emails),
143
143
})
···
151
151
w http.ResponseWriter,
152
152
user *oauth.User,
153
153
) (*types.ForkInfo, error) {
154
+
if user == nil {
155
+
return nil, nil
156
+
}
157
+
154
158
forkInfo := types.ForkInfo{
155
159
IsFork: repoInfo.Source != nil,
156
160
Status: types.UpToDate,