diff --git a/dvc/remote/gdrive.py b/dvc/remote/gdrive.py index c9262f50f0..8983e761c2 100644 --- a/dvc/remote/gdrive.py +++ b/dvc/remote/gdrive.py @@ -125,7 +125,7 @@ def __init__(self, remote, config): self._client_secret = config.get("gdrive_client_secret") self._validate_config() self._gdrive_user_credentials_path = ( - tmp_fname(os.path.join(self.repo.tmp_dir, "")) + tmp_fname(os.path.join(self.remote.repo.tmp_dir, "")) if os.getenv(GDriveRemoteTree.GDRIVE_CREDENTIALS_DATA) else config.get( "gdrive_user_credentials_file", diff --git a/dvc/remote/gs.py b/dvc/remote/gs.py index 9079750762..4d71198b77 100644 --- a/dvc/remote/gs.py +++ b/dvc/remote/gs.py @@ -193,7 +193,7 @@ def get_file_checksum(self, path_info): bucket = path_info.bucket path = path_info.path - blob = self.gs.bucket(bucket).get_blob(path) + blob = self.tree.gs.bucket(bucket).get_blob(path) if not blob: return None