mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
ssh: download: don't use self.path_info (#4619)
This commit is contained in:
@@ -246,8 +246,7 @@ class SSHTree(BaseTree):
|
||||
return ssh.getsize(path_info.path)
|
||||
|
||||
def _download(self, from_info, to_file, name=None, no_progress_bar=False):
|
||||
assert from_info.isin(self.path_info)
|
||||
with self.ssh(self.path_info) as ssh:
|
||||
with self.ssh(from_info) as ssh:
|
||||
ssh.download(
|
||||
from_info.path,
|
||||
to_file,
|
||||
@@ -256,8 +255,7 @@ class SSHTree(BaseTree):
|
||||
)
|
||||
|
||||
def _upload(self, from_file, to_info, name=None, no_progress_bar=False):
|
||||
assert to_info.isin(self.path_info)
|
||||
with self.ssh(self.path_info) as ssh:
|
||||
with self.ssh(to_info) as ssh:
|
||||
ssh.upload(
|
||||
from_file,
|
||||
to_info.path,
|
||||
|
||||
Reference in New Issue
Block a user