branch: externals/dtache
commit c91ce5fd9a872e07bdd96347ee2417de6bf186c2
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
Fix error on remote hosts with dtache-attach
The command didn't set the default-directory so remote sessions were
attached on localhost, which doesn't work.
---
dtache.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/dtache.el b/dtache.el
index 874f889db9..fbe85c5d67 100644
--- a/dtache.el
+++ b/dtache.el
@@ -337,6 +337,7 @@ Optionally SUPPRESS-OUTPUT."
(dtache-tail-output session)
(cl-letf* (((symbol-function #'set-process-sentinel) #'ignore)
(buffer dtache--shell-command-buffer)
+ (default-directory (dtache--session-working-directory
session))
(dtach-command (dtache-dtach-command session t)))
(funcall #'async-shell-command dtach-command buffer)
(with-current-buffer buffer (setq dtache--buffer-session
dtache--current-session))))))))