diff --git a/dvc/repo/worktree.py b/dvc/repo/worktree.py index 6caf14cb11..45fc6dff30 100644 --- a/dvc/repo/worktree.py +++ b/dvc/repo/worktree.py @@ -173,7 +173,7 @@ def push_worktree( ) as cb: cb.set_size(total) try: - pushed += checkout( + stats = checkout( new_index, remote_obj.path, remote_obj.fs, @@ -184,6 +184,7 @@ def push_worktree( jobs=jobs, **diff_kwargs, ) + pushed += sum(len(changes) for changes in stats.values()) except VersioningNotSupported: logger.exception("") raise DvcException( diff --git a/pyproject.toml b/pyproject.toml index 231a9b19b4..ec8ca2be51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "configobj>=5.0.6", "distro>=1.3", "dpath<3,>=2.1.0", - "dvc-data>=0.47.5,<0.48", + "dvc-data>=0.49.1,<0.50", "dvc-http>=2.29.0", "dvc-render>=0.3.1,<1", "dvc-studio-client>=0.9.0,<1",