From c869c22e82b2ca9d927d8de415edd2bd4bb5a54d 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: Tue, 19 Aug 2025 11:51:29 +0545 Subject: [PATCH] fix(status): treat target as a dataset path for cloud instead of DVC file search path Previously, `recursive=True` was the default for cloud status, causing the target to be interpreted as a search path for DVC files. This meant scanning all DVC files in the target directory and subdirectories, then checking cloud status for tracked datasets found in those files. This change sets the default to `recursive=False`, so the target is treated as a dataset path and cloud status is checked only for the dataset tracked at that path. The old behavior can be restored with the `--recursive` flag. --- dvc/repo/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/status.py b/dvc/repo/status.py index f0620adf89..c32c58b041 100644 --- a/dvc/repo/status.py +++ b/dvc/repo/status.py @@ -130,7 +130,7 @@ def status( # noqa: PLR0913 remote=remote, all_tags=all_tags, all_commits=all_commits, - recursive=True, + recursive=recursive, ) ignored = list(