Files
Atay-Makhzan/models/repo_branch.go
T

12 lines
406 B
Go
Raw Normal View History

2016-01-28 20:49:05 +01:00
// Copyright 2016 The Gogs Authors. All rights reserved.
// 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
// CanCreateBranch returns true if repository meets the requirements for creating new branches.
func (repo *Repository) CanCreateBranch() bool {
return !repo.IsMirror
}