git: split export_some_refs()
to smaller functions
#6245
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention