mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Move some repository related code into sub package (#19711)
* Move some repository related code into sub package * Move more repository functions out of models * Fix lint * Some performance optimization for webhooks and others * some refactors * Fix lint * Fix * Update modules/repository/delete.go Co-authored-by: delvh <dev.lh@web.de> * Fix test * Merge * Fix test * Fix test * Fix test * Fix test Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		@@ -1220,7 +1220,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
 | 
			
		||||
			oid := strings.TrimPrefix(line[1:], lfs.MetaFileOidPrefix)
 | 
			
		||||
			if len(oid) == 64 {
 | 
			
		||||
				m := &models.LFSMetaObject{Pointer: lfs.Pointer{Oid: oid}}
 | 
			
		||||
				count, err := db.Count(m)
 | 
			
		||||
				count, err := db.CountByBean(db.DefaultContext, m)
 | 
			
		||||
 | 
			
		||||
				if err == nil && count > 0 {
 | 
			
		||||
					curFile.IsBin = true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user