branch: externals/ssh-deploy commit 36b81ff2135a3239a0e6b388cae2f7458823c273 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Fixed bug where async upload to new remote directory was not working --- ssh-deploy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-deploy.el b/ssh-deploy.el index 3474f00..37be013 100644 --- a/ssh-deploy.el +++ b/ssh-deploy.el @@ -251,7 +251,7 @@ (if (fboundp 'ediff-same-file-contents) (if (or (eq t ,force) (not (file-exists-p ,path-remote)) (and (file-exists-p ,revision-path) (ediff-same-file-contents ,revision-path ,path-remote))) (progn - (if (file-regular-p (file-name-directory ,path-remote)) + (if (not (file-directory-p (file-name-directory ,path-remote))) (make-directory (file-name-directory ,path-remote) t)) (copy-file ,path-local ,path-remote t t t t) (copy-file ,path-local ,revision-path t t t t)