From 6517ad975f129c9e62778c346411680af9b3013e Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 24 Jul 2023 00:20:01 +0000 Subject: [PATCH] fix --- routers/web/repo/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 0de804dbce..c8f4bbb4d6 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -630,7 +630,7 @@ type branchTagSearchResponse struct { // GetBranchesList get branches for current repo' func GetBranchesList(ctx *context.Context) { branchOpts := git_model.FindBranchOptions{ - RepoID: ctx.Repo.Repository.ID, + RepoIDs: []int64{ctx.Repo.Repository.ID}, IsDeletedBranch: util.OptionalBoolFalse, ListOptions: db.ListOptions{ ListAll: true, @@ -665,7 +665,7 @@ func GetTagList(ctx *context.Context) { func PrepareBranchList(ctx *context.Context) { branchOpts := git_model.FindBranchOptions{ - RepoID: ctx.Repo.Repository.ID, + RepoIDs: []int64{ctx.Repo.Repository.ID}, IsDeletedBranch: util.OptionalBoolFalse, ListOptions: db.ListOptions{ ListAll: true,