mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Option to set default branch at repository creation (#10803)
* Option to set default branch at repository creation * Handle template repos with non-default master branch * Add DefaultBranch handling on creation to API Fix #9542 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -929,6 +929,7 @@ type CreateRepoOptions struct {
 | 
			
		||||
	IssueLabels    string
 | 
			
		||||
	License        string
 | 
			
		||||
	Readme         string
 | 
			
		||||
	DefaultBranch  string
 | 
			
		||||
	IsPrivate      bool
 | 
			
		||||
	IsMirror       bool
 | 
			
		||||
	AutoInit       bool
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user