mirror repositories do not reflect changes in upstream default branch #14885

Open
opened 2025-11-02 11:25:06 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @rremer on GitHub (Aug 21, 2025).

Description

Noticed this in my logs:
.../indexer/stats/db.go:52:Index() [D] Unable to get commit ID for default branch no_longer_exists in /data/gitea-repositories/my-org/my-mirrored-repository.git ... skipping this repository

Indeed it looks like discovery of the default branch during services/mirror/mirror_pull.go occurs once during first migration and then stores that branch into the Repository instance. Perhaps subsequent syncs could compare the current default branch of the upstream to the stored one and update as necessary.

Gitea Version

1.23.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

linux/rhel9

How are you running Gitea?

in a k8s pod

Database

SQLite

Originally created by @rremer on GitHub (Aug 21, 2025). ### Description Noticed this in my logs: .../indexer/stats/db.go:52:Index() [D] Unable to get commit ID for default branch no_longer_exists in /data/gitea-repositories/my-org/my-mirrored-repository.git ... skipping this repository Indeed it looks like discovery of the default branch during `services/mirror/mirror_pull.go` occurs once during first migration and then stores that branch into the `Repository` instance. Perhaps subsequent syncs could compare the current default branch of the upstream to the stored one and update as necessary. ### Gitea Version 1.23.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System linux/rhel9 ### How are you running Gitea? in a k8s pod ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 11:25:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14885