[BUG] Restore deleted branches

This commit is contained in:
oliverpool 2024-03-18 12:26:49 +01:00
parent 0a53eb838d
commit 66a135f6f2

View file

@ -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
}