Add Repository.discover

git-struct is supposed to be generic, but the first
member can just be a string for now.