mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Fix panic for fixBrokenRepoUnits16961 (#30068)
				
					
				
			
This commit is contained in:
		| @@ -216,6 +216,12 @@ func fixBrokenRepoUnit16961(repoUnit *repo_model.RepoUnit, bs []byte) (fixed boo | ||||
| 		return false, nil | ||||
| 	} | ||||
|  | ||||
| 	var cfg any | ||||
| 	err = json.UnmarshalHandleDoubleEncode(bs, &cfg) | ||||
| 	if err == nil { | ||||
| 		return false, nil | ||||
| 	} | ||||
|  | ||||
| 	switch repoUnit.Type { | ||||
| 	case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects: | ||||
| 		cfg := &repo_model.UnitConfig{} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 yp05327
					yp05327