From 66a135f6f237c4bb26700a0d2cc026b5acce36af Mon Sep 17 00:00:00 2001 From: oliverpool Date: Mon, 18 Mar 2024 12:26:49 +0100 Subject: [PATCH] [BUG] Restore deleted branches --- services/repository/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/branch.go b/services/repository/branch.go index 39506152f..b68355324 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.go @@ -279,7 +279,7 @@ func SyncBranchesToDB(ctx context.Context, repoID, pusherID int64, branchNames, for i, branchName := range branchNames { commitID := commitIDs[i] branch, exist := branchMap[branchName] - if exist && branch.CommitID == commitID { + if exist && branch.CommitID == commitID && !branch.IsDeleted { continue }