Fixed CS
Fixed repo name if only one repo exists
Changed $name -> $repositoryName