mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	| @@ -23,6 +23,10 @@ func CreateRepository(doer, u *models.User, opts models.CreateRepoOptions) (_ *m | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if len(opts.DefaultBranch) == 0 { | ||||||
|  | 		opts.DefaultBranch = setting.Repository.DefaultBranch | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	repo := &models.Repository{ | 	repo := &models.Repository{ | ||||||
| 		OwnerID:                         u.ID, | 		OwnerID:                         u.ID, | ||||||
| 		Owner:                           u, | 		Owner:                           u, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user