=pro #3904 do not leak internal repositories during staging