mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	When creating new repository fsck option should be enabled (#5817)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							3b364029f7
						
					
				
				
					commit
					386e5312a4
				
			@@ -1369,12 +1369,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	repo := &Repository{
 | 
			
		||||
		OwnerID:     u.ID,
 | 
			
		||||
		Owner:       u,
 | 
			
		||||
		Name:        opts.Name,
 | 
			
		||||
		LowerName:   strings.ToLower(opts.Name),
 | 
			
		||||
		Description: opts.Description,
 | 
			
		||||
		IsPrivate:   opts.IsPrivate,
 | 
			
		||||
		OwnerID:       u.ID,
 | 
			
		||||
		Owner:         u,
 | 
			
		||||
		Name:          opts.Name,
 | 
			
		||||
		LowerName:     strings.ToLower(opts.Name),
 | 
			
		||||
		Description:   opts.Description,
 | 
			
		||||
		IsPrivate:     opts.IsPrivate,
 | 
			
		||||
		IsFsckEnabled: true,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sess := x.NewSession()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user