mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	* Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
This commit is contained in:
		@@ -63,7 +63,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if forkRepo.IsBare || !perm.CanRead(models.UnitTypeCode) {
 | 
			
		||||
	if forkRepo.IsEmpty || !perm.CanRead(models.UnitTypeCode) {
 | 
			
		||||
		ctx.NotFound("getForkRepository", nil)
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user