repository: improved error message for conflicting repository name

Added the check for issue #33.