Ensure that cached repo is from the right URL.

@jkingdon @cheister @robolson