Rebuild repository