aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/fork.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/fork.go')
-rw-r--r--routers/web/repo/fork.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/routers/web/repo/fork.go b/routers/web/repo/fork.go
index 60e37476ee..27e42a8f98 100644
--- a/routers/web/repo/fork.go
+++ b/routers/web/repo/fork.go
@@ -101,10 +101,8 @@ func getForkRepository(ctx *context.Context) *repo_model.Repository {
}
branches, err := git_model.FindBranchNames(ctx, git_model.FindBranchOptions{
- RepoID: ctx.Repo.Repository.ID,
- ListOptions: db.ListOptions{
- ListAll: true,
- },
+ RepoID: ctx.Repo.Repository.ID,
+ ListOptions: db.ListOptionsAll,
IsDeletedBranch: optional.Some(false),
// Add it as the first option
ExcludeBranchNames: []string{ctx.Repo.Repository.DefaultBranch},