Skip to content

Commit

Permalink
Fix branch pagination error
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Aug 24, 2021
1 parent d22cb60 commit 5aaba4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func loadBranches(ctx *context.Context, skip, limit int) ([]*Branch, int) {
branches = append(branches, deletedBranches...)
}

return branches, totalNumOfBranches - 1
return branches, totalNumOfBranches
}

func loadOneBranch(ctx *context.Context, rawBranch *git.Branch, protectedBranches []*models.ProtectedBranch,
Expand Down

0 comments on commit 5aaba4d

Please sign in to comment.