jfchevrette's fix for fixing erroneous indication of errors when a
repository already exists