mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Create new branch from branch selection dropdown (#2130)
* Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
This commit is contained in:
		| @@ -554,6 +554,10 @@ func RegisterRoutes(m *macaron.Macaron) { | ||||
| 				return | ||||
| 			} | ||||
| 		}) | ||||
|  | ||||
| 		m.Group("/branches", func() { | ||||
| 			m.Post("/_new/*", context.RepoRef(), bindIgnErr(auth.NewBranchForm{}), repo.CreateBranch) | ||||
| 		}, reqRepoWriter, repo.MustBeNotBare) | ||||
| 	}, reqSignIn, context.RepoAssignment(), context.UnitTypes(), context.LoadRepoUnits()) | ||||
|  | ||||
| 	// Releases | ||||
|   | ||||
		Reference in New Issue
	
	Block a user