Skip to content

Mirror settings -> interval: -1 #3562

@Pofilo

Description

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

Description

Maybe I'm the only one needing this feature, I don't know. The mirror interval setting is taking a value in "h", "m", "s" (with 10 minutes as the minimal value on try.gitea.io which is not printed but anyway).

Imagine I want a repo to be a mirror but without automatic syncing. This way, when a click to the Sync Now button, the equivalent of a git pull would be done. However, I don't want the sync to be automatic (just for my case, the branch would be deleted for example).

So the idea is that the mirror interval setting would take -1 as a value and this would mean no automatic syncing. Is this a too specific and personal functionality or can it be useful to other people too ? (maybe I'm using the tools is a bad way ..)

Screenshots

Not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions