From dca887717c00a4bfd433f6a207097efbbf06a7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Thu, 8 Jan 2026 19:30:47 +0545 Subject: [PATCH] fix: use correct entries variable in bulk_exists results Fixed bug where `entries` (all entries) was used instead of `_entries` (entries for current path) when updating results, causing all entries to be overwritten on each iteration with incorrect exists values. --- src/dvc_data/index/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvc_data/index/index.py b/src/dvc_data/index/index.py index bb3d1ea6..806039fa 100644 --- a/src/dvc_data/index/index.py +++ b/src/dvc_data/index/index.py @@ -299,7 +299,7 @@ def bulk_exists( # noqa: C901 self.index[key] = build_entry(path, self.fs, info=info) else: self.index.pop(key, None) - results.update(dict.fromkeys(entries, exists)) + results.update(dict.fromkeys(_entries, exists)) if self.index is not None: self.index.commit()