You can clone with
HTTPS or Subversion.
The current code assumes params[:query] is a string, but it can be a hash, too.
See the code here for the right way to handle it:
Fix excon adapter to handle query specified as a hash.