pull: add dummy call to try establishing the connection (#1159)

Fixes #1151

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-09-24 04:41:55 +03:00
committed by GitHub
parent 89e03c8606
commit 363db9125f
+6
View File
@@ -553,6 +553,12 @@ class RemoteLOCAL(RemoteBase):
progress.update_target(title, 60, 100)
# NOTE: dummy call to try to establish a connection
# to see if we need to ask user for a password.
remote.exists(remote.md5s_to_path_infos(['000']))
progress.update_target(title, 70, 100)
assert len(path_infos) == len(cache) == len(md5s) == len(names)
chunks = list(zip(to_chunks(path_infos, jobs),