aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_branch.go
blob: 08e8fccb59e157299cccbfb0817c2b29b1d7a2a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package models

// CanCreateBranch returns true if repository meets the requirements for creating new branches.
func (repo *Repository) CanCreateBranch() bool {
	return !repo.IsMirror
}