From 73820cc5963e969ca9f3a838b26ef00a93a0e7b4 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 28 Dec 2023 06:04:45 +0200 Subject: [PATCH] push: don't try to update meta for non versioned remotes Per https://github.com/iterative/dvc/pull/10191#issuecomment-1870716262 --- dvc/repo/push.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dvc/repo/push.py b/dvc/repo/push.py index 0124af7919..e3cd50009e 100644 --- a/dvc/repo/push.py +++ b/dvc/repo/push.py @@ -37,6 +37,9 @@ def _update_meta(index, **kwargs): for remote_name, idx in worktree_view_by_remotes(index, push=True, **kwargs): remote = index.repo.cloud.get_remote(remote_name) + if not remote.fs.version_aware: + continue + with ui.progress( desc=f"Collecting {remote.path} on {remote.fs.protocol}", unit="entry", @@ -46,9 +49,6 @@ def _update_meta(index, **kwargs): new = _rebuild(idx.data["repo"], remote.path, remote.fs, cb) for out in idx.outs: - if not remote.fs.version_aware: - continue - _merge_push_meta(out, new, remote.name) stages.add(out.stage)