ReplicateRepository sync after snapshot repo creation
Problem
When ReplicateRepository
creates a repository on a shard, it seeds that repository using GetSnapshot
. GetSnapshot
does not necessarily provide a consistent view of the repository like git fetch
does.
This is a problem for gitlab rails when moving repositories between shards. It should not need to know if the resulting replication is consistent or not.
Proposal
To solve this, after creating a repository using GetSnapshot
it should additionally call FetchInternalRemote
to force the new copy to be consistent.
Related to #2858 (closed)
Edited by James Fargher