Fix bug causing duplicate repo records when adding via URL