mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	test2
This commit is contained in:
		
							parent
							
								
									0aa7967488
								
							
						
					
					
						commit
						c725e6d71c
					
				@ -10,7 +10,7 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (repo *Repository) getTree(id ObjectID) (*Tree, error) {
 | 
					func (repo *Repository) getTree(id ObjectID) (*Tree, error) {
 | 
				
			||||||
	batch, cancel, err := repo.CatFileBatch(repo.Ctx, true)
 | 
						batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) //test
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
@ -36,7 +36,7 @@ func (te *TreeEntry) Size() int64 {
 | 
				
			|||||||
		return te.size
 | 
							return te.size
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	batch, cancel, err := te.ptree.repo.CatFileBatch(te.ptree.repo.Ctx, true)
 | 
						batch, cancel, err := te.ptree.repo.CatFileBatch(te.ptree.repo.Ctx, false) //test
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		log.Debug("error whilst reading size for %s in %s. Error: %v", te.ID.String(), te.ptree.repo.Path, err)
 | 
							log.Debug("error whilst reading size for %s in %s. Error: %v", te.ID.String(), te.ptree.repo.Path, err)
 | 
				
			||||||
		return 0
 | 
							return 0
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,7 @@ func (t *Tree) ListEntries() (Entries, error) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if t.repo != nil {
 | 
						if t.repo != nil {
 | 
				
			||||||
		batch, cancel, err := t.repo.CatFileBatch(t.repo.Ctx, true)
 | 
							batch, cancel, err := t.repo.CatFileBatch(t.repo.Ctx, false) //test
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return nil, err
 | 
								return nil, err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user