Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 3

How is the "mirrored from" annotation added to a mirrored repo?

When checking some official mirrors on GitHub, some repos have the "mirrored from" annotation, for example https://github.com/aosp-mirror/platform_frameworks_base shows "mirrored from https://android.googlesource.com/platform/frameworks/base.git" below the repo name "aosp-mirror/platform_frameworks_base".

Some mirrored repo on the other hand, like the Qt mirrors and KDE mirrors, does not. (e.g. https://github.com/qt/qtbase)

 

Is it something that the repo owner have to ask GitHub staffs to add manually?

2 Replies
Highlighted
Copilot Lvl 3
Message 2 of 3

Re: How is the "mirrored from" annotation added to a mirrored repo?

That "mirrored from" notation indicates that GitHub syncs with the official repo periodically. While that is something we used to occasionally set up for repositories on our end, we now recommend using a post-receive hook to automatically mirror the repo. The advantage of that is the mirror will always be up-to-date instead of being behind the official repo until our sync job runs. You can read more about mirroring on GitHub here:

 

https://help.github.com/articles/about-github-mirrors/

Highlighted
Copilot Lvl 2
Message 3 of 3

Re: How is the "mirrored from" annotation added to a mirrored repo?

@cmrberry I know that this is an old thread, but just wanted to confirm: there is no way to get the "mirror" symbol or annotation when a user manually sets up a mirror from a post-receive hook on the original repository?