Thanks Jamis. It works. On May 27, 10:49 am, Jamis Buck <[EMAIL PROTECTED]> wrote: > The commit itself is on github, here: > > http://github.com/jamis/net-sftp/commit/2a0cf02dcb7233f197032f6fd80ec... > > You could take the diff displayed there and apply it to the net-sftp > gem that you have installed. It's a pretty manual process, but it > should work. > > - Jamis > > On May 27, 2008, at 8:44 AM, paul wrote: > > > > > Jamis, > > > Thanks for the reply. Is there a way for the quick patch? > > > Paul. > > > On May 25, 12:28 am, Jamis Buck <[EMAIL PROTECTED]> wrote: > >> It's a binary vs. text issue. Net::SFTP needs to be fixed to always > >> do > >> binary uploads. I haven't done it yet, but it's on my plate. > > >> (Can I be pardoned for a moment of ranting? This binary/text auto- > >> translation thing is one of the dumbest things on the planet. Leave > >> it > >> to microsoft to paint themselves into that particular corner.) > > >> - Jamis > > >> On May 23, 2008, at 3:50 PM, paul wrote: > > >>> Just tried to use sftp upload in windows xp. > >>> ... > >>> desc "doing upload" > >>> task :test101, :roles => :wrapper do > >>> upload "#{local_path}/remote/1.txt", "#{remote_path}/remote/ > >>> 1.txt",:via=>:sftp > >>> end > >>> ... > > >>> run: cap test101 > > >>> I can see 1.txt successfully [net::sftp upload] transfer to the > >>> remote, but the file size is reduced (from 105,562 bytes to 105,394 > >>> bytes) and the file is truncated. There is the same problem using > >>> [net::sftp download] > > >>> Any idea? Is it the bug? > > >> smime.p7s > >> 3KDownload > > > > > > > smime.p7s > 3KDownload
--~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
