diff --git a/lib/cocoapods-downloader/git.rb b/lib/cocoapods-downloader/git.rb index f9804a2..1312a88 100644 --- a/lib/cocoapods-downloader/git.rb +++ b/lib/cocoapods-downloader/git.rb @@ -59,7 +59,7 @@ def self.commit_from_ls_remote(output, branch_name) end def self.validate_input(options) - input = [options[:git], options[:branch], options[:commit], options[:tag]] + input = [options[:git], options[:branch], options[:commit], options[:tag]].map(&:to_s) invalid = input.compact.any? { |value| value.start_with?('--') || value.include?(' --') } raise DownloaderError, "Provided unsafe input for git #{options}." if invalid end