forked from forgejo/forgejo
update with new git
This commit is contained in:
parent
9ffa8a4083
commit
52b4ab2aa5
10 changed files with 307 additions and 663 deletions
|
@ -7,12 +7,11 @@ package repo
|
|||
import (
|
||||
"github.com/go-martini/martini"
|
||||
|
||||
"github.com/gogits/gogs/models"
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
)
|
||||
|
||||
func Branches(ctx *middleware.Context, params martini.Params) {
|
||||
brs, err := models.GetBranches(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
|
||||
brs, err := ctx.Repo.GitRepo.GetBranches()
|
||||
if err != nil {
|
||||
ctx.Handle(404, "repo.Branches", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue