mirror of
https://github.com/go-gitea/gitea
synced 2025-01-25 00:54:27 +00:00
backport #30068
This commit is contained in:
parent
8dccea02f2
commit
6d47b63be2
@ -216,6 +216,12 @@ func fixBrokenRepoUnit16961(repoUnit *repo_model.RepoUnit, bs []byte) (fixed boo
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var cfg any
|
||||||
|
err = json.UnmarshalHandleDoubleEncode(bs, &cfg)
|
||||||
|
if err == nil {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
|
||||||
switch repoUnit.Type {
|
switch repoUnit.Type {
|
||||||
case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects:
|
case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects:
|
||||||
cfg := &repo_model.UnitConfig{}
|
cfg := &repo_model.UnitConfig{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user