We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git
1 parent 22da9da commit 116f8e1Copy full SHA for 116f8e1
routers/web/repo/actions/actions.go
@@ -61,12 +61,7 @@ func List(ctx *context.Context) {
61
ctx.Error(http.StatusInternalServerError, err.Error())
62
return
63
} else if !empty {
64
- defaultBranch, err := ctx.Repo.GitRepo.GetDefaultBranch()
65
- if err != nil {
66
- ctx.Error(http.StatusInternalServerError, err.Error())
67
- return
68
- }
69
- commit, err := ctx.Repo.GitRepo.GetBranchCommit(defaultBranch)
+ commit, err := ctx.Repo.GitRepo.GetBranchCommit(ctx.Repo.Repository.DefaultBranch)
70
if err != nil {
71
72
0 commit comments