Permalink
Browse files

Calling to_s for repository_type before calling downcase since it's a…

… symbol

Signed-off-by: François Beausoleil <francois@teksol.info>
  • Loading branch information...
chrisgibson authored and francois committed Jul 30, 2009
1 parent b378841 commit 1bcc16bf874afca88e061ea35cd049b7a1d38ab4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/piston/commands/import.rb
@@ -12,7 +12,7 @@ def repository_type
def select_repository(repository_url)
if repository_type then
logger.info {"Forced repository type to #{repository_type}"}
repository_class_name = "Piston::#{repository_type.downcase.capitalize}::Repository"
repository_class_name = "Piston::#{repository_type.to_s.downcase.capitalize}::Repository"
repository_class = repository_class_name.constantize
repository_class.new(repository_url)
else

0 comments on commit 1bcc16b

Please sign in to comment.