Skip to content

Commit 561e84e

Browse files
authored
Merge branch 'main' into fix-20621-no-err-in-IsUserAllowedToUpdate
2 parents fdd742b + 03df7d0 commit 561e84e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/repo/mirror.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ func (repos MirrorRepositoryList) loadAttributes(ctx context.Context) error {
153153
}
154154
for i := range repos {
155155
repos[i].Mirror = set[repos[i].ID]
156-
repos[i].Mirror.Repo = repos[i]
156+
if repos[i].Mirror != nil {
157+
repos[i].Mirror.Repo = repos[i]
158+
}
157159
}
158160
return nil
159161
}

0 commit comments

Comments
 (0)