Skip to content

Conversation

jolheiser
Copy link
Member

@jolheiser jolheiser commented Jun 2, 2020

Wording is consistent with FORCE_PRIVATE

mirrors

This will stop the creation of new mirror migrations. For existing mirrors, the site admin will need to turn off the cron for updating them (or delete them).

@jolheiser jolheiser added the type/enhancement An improvement of existing functionality label Jun 2, 2020
@jolheiser jolheiser added this to the 1.13.0 milestone Jun 2, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 2, 2020
Copy link
Member

@guillep2k guillep2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment change suggestion. Otherwise LG-TM.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 2, 2020
@techknowlogick
Copy link
Member

ping LG-TM

@techknowlogick techknowlogick merged commit a6fd2f2 into go-gitea:master Jun 3, 2020
@jolheiser jolheiser deleted the disable-mirror branch June 3, 2020 01:22
@6543
Copy link
Member

6543 commented Jun 4, 2020

@Codeberg-org this can be usefull for you :)

(so you can drop your own patch then ...)

@@ -118,7 +118,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
RepoName: form.RepoName,
Description: form.Description,
Private: form.Private || setting.Repository.ForcePrivate,
Mirror: form.Mirror,
Mirror: form.Mirror && !setting.Repository.DisableMirrors,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would had prefered to return an error

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> #11757

ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* Allow site admin to disable mirrors

Signed-off-by: jolheiser <[email protected]>

* No need to run through Safe

Signed-off-by: jolheiser <[email protected]>

* Clarify only disabling NEW mirrors

Signed-off-by: jolheiser <[email protected]>

* Apply suggestions from @guillep2k

Co-authored-by: guillep2k <[email protected]>

Co-authored-by: guillep2k <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants