Set repository properly.