mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-22 15:19:01 +00:00
clean watches when make a repository private and check permission when send release emails (#36319)
This commit is contained in:
1 parent
1c1a7b8492
commit
8a98ac2213
7 files changed
+153
-8
No files matched your search
@@ -194,6 +194,10 @@ func MakeRepoPrivate(ctx context.Context, repo *repo_model.Repository) (err erro
|
||||
return err
|
||||
}
|
||||
|
||||
if err = repo_model.ClearRepoWatches(ctx, repo.ID); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Create/Remove git-daemon-export-ok for git-daemon...
|
||||
if err := CheckDaemonExportOK(ctx, repo); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user