-
Couldn't load subscription status.
- Fork 1.3k
Closed
Labels
Description
Extracted from #4323 (comment)
When you use check-ignore in interactive mode, empty strings produce an error and exit. However empty strings are accepted (never match) without --stdin:
λ cat .dvcignore
*
λ dvc check-ignore --stdin
anything
anything
# <- just hit Enter
Empty string is not a valid pathspec. Please use . instead if you meant to match all paths.
λ dvc check-ignore -dn ''
::So I propose that a) empty strings in --stdin interactive mode simply cause the tool to exit back to the shell prompt and/or b) empty strings sent as targets should just be ignored? (exit tool silently)