You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_branch.go 406B

1234567891011
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // Copyright 2019 The Gitea Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package models
  6. // CanCreateBranch returns true if repository meets the requirements for creating new branches.
  7. func (repo *Repository) CanCreateBranch() bool {
  8. return !repo.IsMirror
  9. }