emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ssh-deploy 6f54fd5 110/173: Fixed bug where upload file


From: Stefan Monnier
Subject: [elpa] externals/ssh-deploy 6f54fd5 110/173: Fixed bug where upload file into folder that does not exist on remote
Date: Sat, 20 Oct 2018 10:36:40 -0400 (EDT)

branch: externals/ssh-deploy
commit 6f54fd56f8a97a09dcd906d92558286cc42591e2
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]