Skip to content

Commit ae181e8

Browse files
Ubuntuclaude
andcommitted
Fix status: exclude .dvc directory from file glob
The glob '**/*.dvc' was matching the .dvc directory itself in addition to .dvc files. Added is_file() filter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 618f46c commit ae181e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dvx/commands/status.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def run(self):
6060
targets = list(args.targets) if args.targets else []
6161
if not targets:
6262
# Default: find all .dvc files recursively (like git status)
63-
targets = list(Path('.').glob('**/*.dvc'))
63+
# Filter to files only (exclude .dvc directory itself)
64+
targets = [p for p in Path('.').glob('**/*.dvc') if p.is_file()]
6465
if not targets:
6566
logger.warning("No .dvc files found")
6667
return 0

0 commit comments

Comments
 (0)