Permalink
Browse files

Fix for HostContext._chdir. Fixes the scp shell.

  • Loading branch information...
1 parent a89d45f commit 10275b2b611818c8caec47643b12b7bb08a57243 @jonathanslenders committed Jun 27, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 deployer/host/base.py
View
@@ -93,7 +93,8 @@ def __exit__(context, *args):
def _chdir(self, path):
""" Move to this directory. Not to be used together with the `cd` context manager. """
# NOTE: This is used by the sftp shell.
- self._path = [ (os.path.join(* self._path + [path]), False) ]
+ # TODO: check 'expand' flags.
+ self._path = [ (os.path.join(* [p[0] for p in self._path] + [path]), False) ]
def env(self, variable, value, escape=True):
"""

0 comments on commit 10275b2

Please sign in to comment.