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

Open
opened 2025-11-02 06:32:10 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @bpycinski on GitHub (Jun 29, 2020).

  • Gitea version (or commit ref): 1.12.1
  • Git version: 2.1.4
  • Operating system: Raspbian 8.0
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

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.

Originally created by @bpycinski on GitHub (Jun 29, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.12.1 - Git version: 2.1.4 - Operating system: Raspbian 8.0 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant ## 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.
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 06:32:10 -06:00
Author
Owner

@bpycinski commented on GitHub (Jun 30, 2020):

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.

@bpycinski commented on GitHub (Jun 30, 2020): 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.
Author
Owner

@stale[bot] commented on GitHub (Aug 30, 2020):

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.

@stale[bot] commented on GitHub (Aug 30, 2020): 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.
Author
Owner

@DUOLabs333 commented on GitHub (Jan 27, 2022):

@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.

@DUOLabs333 commented on GitHub (Jan 27, 2022): @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.
Author
Owner

@bpycinski commented on GitHub (Jan 27, 2022):

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.

@bpycinski commented on GitHub (Jan 27, 2022): 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.
Author
Owner

@DUOLabs333 commented on GitHub (Jan 27, 2022):

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

@DUOLabs333 commented on GitHub (Jan 27, 2022): You can only add mirrors, not edit pre-existing ones.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5658