[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 5e86b22 072/173: Bug fix for automatically c
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 5e86b22 072/173: Bug fix for automatically creating missing remote directories on upload |
Date: |
Sat, 20 Oct 2018 10:36:33 -0400 (EDT) |
branch: externals/ssh-deploy
commit 5e86b22d14e34207bf9c0888ac5fe2e782dcf5cb
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Bug fix for automatically creating missing remote directories on upload
---
ssh-deploy.el | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index cf6aa27..3640d1e 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -4,7 +4,7 @@
;; Maintainer: Christian Johansson <github.com/cjohansson>
;; Created: 5 Jul 2016
;; Modified: 20 May 2017
-;; Version: 1.55
+;; Version: 1.56
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
@@ -264,8 +264,8 @@
(progn
(if (or (eq t ,force) (not (file-exists-p
,remote-path)) (and (file-exists-p ,revision-path) (ediff-same-file-contents
,revision-path ,remote-path)))
(progn
- (if (not (file-directory-p
(directory-file-name ,remote-path)))
- (make-directory (directory-file-name
,remote-path) t))
+ (if (not (file-directory-p
(file-name-directory ,remote-path)))
+ (make-directory (file-name-directory
,remote-path) t))
(copy-file ,local ,remote-path t t t t)
(copy-file ,local ,revision-path t t t t)
(list 0 (format "Upload '%s' completed."
,remote-path)))
@@ -281,8 +281,8 @@
(progn
(async-start
`(lambda()
- (if (not (file-directory-p (directory-file-name
,remote-path)))
- (make-directory (directory-file-name ,remote-path)
t))
+ (if (not (file-directory-p (file-name-directory
,remote-path)))
+ (make-directory (file-name-directory ,remote-path)
t))
(copy-directory ,local ,remote-path t t t)
,local)
(lambda(return-path)
@@ -290,7 +290,7 @@
(progn
(async-start
`(lambda()
- (copy-directory ,local ,(file-name-directory
(directory-file-name remote-path)) t t)
+ (copy-directory ,local ,(file-name-directory
(directory-file-name remote-path)) t t t)
,local)
(lambda(return-path)
(message "Upload '%s' finished." return-path)))))))))
@@ -305,6 +305,8 @@
(if (or (boundp 'force) (not (ssh-deploy--remote-has-changed local
remote-path)))
(progn
(message "Uploading file '%s' to '%s' via tramp
synchronously.." local remote-path)
+ (if (not (file-directory-p (file-name-directory remote-path)))
+ (make-directory (file-name-directory remote-path) t))
(copy-file local remote-path t t t t)
(message "Upload '%s' finished" local)
(ssh-deploy-store-revision local))
@@ -316,7 +318,7 @@
(copy-directory local remote-path t t t)
(message "Upload '%s' finished" local))
(progn
- (copy-directory local (file-name-directory (directory-file-name
remote-path)) t t)
+ (copy-directory local (file-name-directory (directory-file-name
remote-path)) t t t)
(message "Upload '%s' finished" local)))))))
(defun ssh-deploy--download-via-tramp-async (remote local local-root)
@@ -348,7 +350,7 @@
(progn
(async-start
`(lambda()
- (copy-directory ,remote-path ,(file-name-directory
(directory-file-name remote-path)) t t)
+ (copy-directory ,remote-path ,(file-name-directory
(directory-file-name remote-path)) t t t)
,local)
(lambda(return-path)
(message "Download '%s' finished." return-path)))))))))
@@ -371,7 +373,7 @@
(copy-directory remote-path local t t t)
(message "Download '%s' finished." local))
(progn
- (copy-directory remote-path (file-name-directory
(directory-file-name remote-path)) t t)
+ (copy-directory remote-path (file-name-directory
(directory-file-name remote-path)) t t t)
(message "Download '%s' finished." local))
)))))
- [elpa] externals/ssh-deploy 56da852 066/173: Fixed bug where plug-in reported external changes even though remote, (continued)
- [elpa] externals/ssh-deploy 56da852 066/173: Fixed bug where plug-in reported external changes even though remote, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy a627c90 057/173: Updated readme, spelling and grammar fixes, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0e32ab3 056/173: Added support for detection of external changes in FTP and improved async signals, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 109dbb1 034/173: FTP support and refactoring completed, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 14e7700 043/173: Now uses asynchrous tranfers progressively, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 97d803d 004/173: Updated comments and changed license in preparation for MELPA submission., Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy de8eadd 067/173: Remote path is not shell escaped on upload and download because it, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 6d1c10c 069/173: Improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy ec46610 075/173: Fixed a typo and improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c8b322a 074/173: Fixed markdown syntax, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5e86b22 072/173: Bug fix for automatically creating missing remote directories on upload,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 4fbe568 084/173: Updated hydra example to prevent lazy loading of package, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4c35ab7 055/173: Fixed syntax bug in MELPA description, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d324b9f 046/173: Cleaned up code structure and isolated functions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 404aa7e 042/173: Transfers now use TRAMP asynchrously, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c04badf 048/173: Moved autoloading functions last, changed parameters for copy functions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 3569e5e 058/173: More grammatical fixes for README.md, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4005d0e 001/173: My initial commit, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 1c1e379 063/173: More improvement on README for force uploads, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 1f0bdf6 071/173: Create directories on remote When uploading files in a folder that, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b1f9e5b 050/173: Now detects remote changes, Stefan Monnier, 2018/10/20