add check for duplicate repo, and tests
Merge pull request #16 from FooFoBerry/non-dup-repo

add check for duplicate repo, and tests