Doco for 'repository' is inconsistent with what actually works