mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	update git api. fix link... and so on
This commit is contained in:
		| @@ -11,21 +11,15 @@ import ( | ||||
| ) | ||||
|  | ||||
| func Branches(ctx *middleware.Context, params martini.Params) { | ||||
| 	if !ctx.Repo.IsValid { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	brs, err := models.GetBranches(params["username"], params["reponame"]) | ||||
| 	brs, err := models.GetBranches(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name) | ||||
| 	if err != nil { | ||||
| 		ctx.Handle(200, "repo.Branches", err) | ||||
| 		ctx.Handle(404, "repo.Branches", err) | ||||
| 		return | ||||
| 	} else if len(brs) == 0 { | ||||
| 		ctx.Handle(404, "repo.Branches", nil) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	ctx.Data["Username"] = params["username"] | ||||
| 	ctx.Data["Reponame"] = params["reponame"] | ||||
| 	ctx.Data["Branches"] = brs | ||||
| 	ctx.Data["IsRepoToolbarBranches"] = true | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user