diff --git a/lib/homesick.rb b/lib/homesick.rb index 09647f9..f19aca9 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -22,7 +22,7 @@ class Homesick < Thor destination = nil if File.exist?(uri) uri = Pathname.new(uri).expand_path - if uri.to_s.start_with?(repos_dir) + if uri.to_s.start_with?(repos_dir.to_s) raise "Castle already cloned to #{uri}" end