2016-01-28 20:49:05 +01:00
|
|
|
// Copyright 2016 The Gogs Authors. All rights reserved.
|
2019-04-19 14:17:27 +02:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2016-01-28 20:49:05 +01:00
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
2016-01-15 19:24:03 +01:00
|
|
|
package models
|
|
|
|
|
|
2017-10-15 22:59:24 +03:00
|
|
|
// CanCreateBranch returns true if repository meets the requirements for creating new branches.
|
|
|
|
|
func (repo *Repository) CanCreateBranch() bool {
|
|
|
|
|
return !repo.IsMirror
|
|
|
|
|
}
|