|
|
|
@ -66,6 +66,7 @@ func LoadBranches(ctx context.Context, repo *repo_model.Repository, gitRepo *git |
|
|
|
|
PageSize: pageSize, |
|
|
|
|
}, |
|
|
|
|
Keyword: keyword, |
|
|
|
|
ExcludeBranchNames: []string{repo.DefaultBranch}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dbBranches, totalNumOfBranches, err := db.FindAndCount[git_model.Branch](ctx, branchOpts) |
|
|
|
@ -73,8 +74,6 @@ func LoadBranches(ctx context.Context, repo *repo_model.Repository, gitRepo *git |
|
|
|
|
return nil, nil, 0, err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
branchOpts.ExcludeBranchNames = []string{repo.DefaultBranch} |
|
|
|
|
|
|
|
|
|
if err := git_model.BranchList(dbBranches).LoadDeletedBy(ctx); err != nil { |
|
|
|
|
return nil, nil, 0, err |
|
|
|
|
} |
|
|
|
|