Remove stars when repo goes private (#19904)

Fixes #18600
This commit is contained in:
Wim authored and GitHub committed 2023-06-05 13:25:43 +00:00
1 parent 8e63373c01
commit 62ac3251fa
5 files changed
+38 -1

No files matched your search

+4
View File
@@ -397,6 +397,10 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili
if err != nil {
return err
}
if err = repo_model.ClearRepoStars(ctx, repo.ID); err != nil {
return err
}
}
// Create/Remove git-daemon-export-ok for git-daemon...