summaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-03-14 20:52:01 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-15 08:52:01 +0800
commit021904e4e65804baa67b38e193e15aa37a391c60 (patch)
tree5c4f74764048eadd39a51c1b27e9c4937a0d236b /models/branches.go
parentec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (diff)
downloadgitea-021904e4e65804baa67b38e193e15aa37a391c60.tar.gz
gitea-021904e4e65804baa67b38e193e15aa37a391c60.zip
Fix typos in models/ and modules/ (#1248)
Diffstat (limited to 'models/branches.go')
-rw-r--r--models/branches.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/branches.go b/models/branches.go
index 89a699603b..322d33daae 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -57,7 +57,7 @@ func GetProtectedBranchBy(repoID int64, BranchName string) (*ProtectedBranch, er
return rel, nil
}
-// GetProtectedBranches get all protected btanches
+// GetProtectedBranches get all protected branches
func (repo *Repository) GetProtectedBranches() ([]*ProtectedBranch, error) {
protectedBranches := make([]*ProtectedBranch, 0)
return protectedBranches, x.Find(&protectedBranches, &ProtectedBranch{RepoID: repo.ID})