Skip to content

Preserve failed Git synchronization status when a mirror directory exists #18

Open

Description

@LunaStev

Problem

Repositories overwrites each stored status with ready whenever the mirror directory exists. A failed fetch, or even an invalid directory at the mirror path, is therefore presented as healthy.

Evidence / regression scenario

A focused service probe set a mirror to error and created its directory; Repositories reported ready.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Preserve syncing/error state rather than replacing it merely because a directory exists.
  • Represent availability of cached source separately if needed, without hiding the most recent synchronization failure.
  • Test an existing valid mirror with a failed refresh, an invalid directory, and an ordinary ready mirror using local fixtures.
  • Preserve last successful fetch information and avoid public network access in tests.

Scope and dependencies

Difficulty: easy.

Existing #5 owns synchronization map locking. This issue does not change worker concurrency or repository discovery.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    bug
    good first issue
    help wanted
    source
    priority medium
    needs testing
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wantedneeds testingpriority mediumsource

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions