    # File lib/chef/provider/git.rb, line 141
          def clone
            converge_by("clone from #{@new_resource.repository} into #{@new_resource.destination}") do
              remote = @new_resource.remote

              args = []
              args << "-o #{remote}" unless remote == 'origin'
              args << "--depth #{@new_resource.depth}" if @new_resource.depth

              Chef::Log.info "#{@new_resource} cloning repo #{@new_resource.repository} to #{@new_resource.destination}"

              clone_cmd = "git clone #{args.join(' ')} #{@new_resource.repository} #{Shellwords.escape @new_resource.destination}"
              shell_out!(clone_cmd, run_options(:log_level => :info))
            end
          end