git-deploy icon indicating copy to clipboard operation
git-deploy copied to clipboard

It's not creating Directory on server if not exist

Open dhavaldarji opened this issue 13 years ago • 1 comments

Hi, I tried ./git-deploy and there are few files change between last 2 commits. say.. modules/Email/Email.php include/javascript/test.js

now on server (i am doing tesing) /var/www/test/ is an empty folder

and my deploy.yml file has path = /var/www/test/

so when i fire ./git-deploy it says

/var/www/test/ Connecting to www.host.com Remote Revision: c86ef64d9b996cf445bcb5cc4bb9811a07bf9dde git diff --name-status c86ef64d9b996cf445bcb5cc4bb9811a07bf9dde..HEAD -- Uploading include/javascript/test.js /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/operations/upload.rb:313:in on_open': Net::SFTP::StatusException open /var/www/test//include/javascript/test.js (2, "no such file") (Net::SFTP::StatusException) from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:into_proc' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/request.rb:87:in call' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/request.rb:87:inrespond_to' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/session.rb:948:in dispatch_request' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/session.rb:911:inwhen_channel_polled' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in to_proc' from /var/lib/gems/1.8/gems/net-ssh-2.5.2/lib/net/ssh/connection/channel.rb:311:incall'

seems like it is not creating directories if it does not exist, if i do create blank dir then it works fine.

dhavaldarji avatar Jul 10 '12 07:07 dhavaldarji

I have fixed it in my fork: https://github.com/mkubenka/git-deploy/commit/8c6aec54b795e94e1339f3e917088c504409048c#bin

mkubenka avatar Sep 20 '12 10:09 mkubenka