Skip to content

Commit

Permalink
push: don't try to update meta for non versioned remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Dec 28, 2023
1 parent e7b695d commit 73820cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dvc/repo/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)

Expand Down

0 comments on commit 73820cc

Please sign in to comment.