go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.11k stars 5.41k forks source link

Update "Mirror Settings" of a migrated local repository #12091

Open bpycinski opened 4 years ago

bpycinski commented 4 years ago

Description

A repository was migrated from a local path (New Migration -> Migrate: /git/my-bare-repo). After the migration had been completed, there were no possibility to change the following settings of the repository: "Settings" -> "Repository" -> "Mirror Setting" -> "Mirror Interval" (default value 8h is too long).

After pressing the button "Update Settings", the following comment appeared: "The provided url is invalid. Only http(s):// or git:// locations can be mirrored from." The value of the box "Clone From URL" was not changed.

bpycinski commented 4 years ago

Update: the value "Mirror Interval" described above could be changed in GUI, but the new value was not displayed until the page is fully refreshed.

So there is a problem that upstream URL is unnecessarily validated even if it was not modified.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

DUOLabs333 commented 2 years ago

@bpycinski How did you change the "Mirror Interval" from the GUI? I have the same problem, but there's nowhere I can see to change it.

bpycinski commented 2 years ago

I am running currently version 1.15.0, but I think it has not changed. Open your repository, in the upper right corner there is a "Settings" with an icon of a wrench, and somewhere in the middle of the page there is "Mirror Settings". If you want to change this setting globally, probably you need to adjust the config file.

DUOLabs333 commented 2 years ago

You can only add mirrors, not edit pre-existing ones.