Fix backwards-incompatible handling of core.sharedRepository