branch: externals/ssh-deploy
commit 6f54fd56f8a97a09dcd906d92558286cc42591e2
Author: Christian Johansson <christ...@cvj.se>
Commit: Christian Johansson <christ...@cvj.se>

    Fixed bug where upload file into folder that does not exist on remote
---
 ssh-deploy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssh-deploy.el b/ssh-deploy.el
index 0c8d87c..3474f00 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -285,7 +285,7 @@
                       (and (file-exists-p revision-path) 
(ediff-same-file-contents revision-path path-remote)))
                   (progn
                     (message "Uploading file '%s' to '%s'.. (synchronously)" 
path-local path-remote)
-                    (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)
                     (ssh-deploy-store-revision path-local revision-folder)

Reply via email to