mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 15:23:33 +01:00
[BUG] Restore deleted branches
This commit is contained in:
parent
0a53eb838d
commit
66a135f6f2
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ func SyncBranchesToDB(ctx context.Context, repoID, pusherID int64, branchNames,
|
||||||
for i, branchName := range branchNames {
|
for i, branchName := range branchNames {
|
||||||
commitID := commitIDs[i]
|
commitID := commitIDs[i]
|
||||||
branch, exist := branchMap[branchName]
|
branch, exist := branchMap[branchName]
|
||||||
if exist && branch.CommitID == commitID {
|
if exist && branch.CommitID == commitID && !branch.IsDeleted {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue