From 363db9125fa85a8589724501a50a5d361c07a757 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 24 Sep 2018 04:41:55 +0300 Subject: [PATCH] pull: add dummy call to try establishing the connection (#1159) Fixes #1151 Signed-off-by: Ruslan Kuprieiev --- dvc/remote/local.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dvc/remote/local.py b/dvc/remote/local.py index 85bf8db2f..0ed4351fd 100644 --- a/dvc/remote/local.py +++ b/dvc/remote/local.py @@ -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),