mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	A pull-mirror repo should be marked as such on creation (#19295)
Right now, a pull-mirror repo does not get marked as such until *after* the mirroring completes. In the meantime, it will show up (in API and UI) as a regular repo.
This commit is contained in:
		@@ -54,6 +54,7 @@ func CreateRepository(doer, u *user_model.User, opts models.CreateRepoOptions) (
 | 
			
		||||
		Status:                          opts.Status,
 | 
			
		||||
		IsEmpty:                         !opts.AutoInit,
 | 
			
		||||
		TrustModel:                      opts.TrustModel,
 | 
			
		||||
		IsMirror:                        opts.IsMirror,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var rollbackRepo *repo_model.Repository
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user