mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-28 01:54:13 +01:00 
			
		
		
		
	Backport #33255 by yp05327 Fix #33222 Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
		
							parent
							
								
									80cc87b3d8
								
							
						
					
					
						commit
						2984a7c121
					
				| @ -54,6 +54,7 @@ func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string, | ||||
| 		for _, o := range oldLicenses { | ||||
| 			// Update already existing license | ||||
| 			if o.License == license { | ||||
| 				o.CommitID = commitID | ||||
| 				if _, err := db.GetEngine(ctx).ID(o.ID).Cols("`commit_id`").Update(o); err != nil { | ||||
| 					return err | ||||
| 				} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user