Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list: behavior in no-scm projects #3417

Closed
pared opened this issue Feb 27, 2020 · 2 comments
Closed

list: behavior in no-scm projects #3417

pared opened this issue Feb 27, 2020 · 2 comments
Labels
enhancement Enhances DVC p2-medium Medium priority, should be done, but less important question I have a question? ui user interface / interaction

Comments

@pared
Copy link
Contributor

pared commented Feb 27, 2020

Upon running:
dvc list .
inside my home directory, I get following output:

ERROR: failed to list '.' - Failed to clone repo '.' to '/tmp/tmpwy4abbuldvc-clone': Cmd('git') failed due to: exit code(128)
  cmdline: git clone --no-single-branch -v . /tmp/tmpwy4abbuldvc-clone
  stderr: 'fatal: repository '.' does not exist
'

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

Shouldn't this message be simpler, like . is not an Git nor DVC repositroy?

@pared pared added the question I have a question? label Feb 27, 2020
@efiop efiop added enhancement Enhances DVC p2-medium Medium priority, should be done, but less important ui user interface / interaction labels Feb 28, 2020
@jorgeorpinel jorgeorpinel changed the title dvc list behaviour in non-git, non-dvc directory list: behaviour in non-git, non-dvc directory Mar 4, 2020
@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Mar 4, 2020

➕1 to improving this error message to something more friendly like `dvc list` can only list contents of Git-tracked DVC repos. (Note that it doesn't support no-scm DVC projects.)

@jorgeorpinel jorgeorpinel changed the title list: behaviour in non-git, non-dvc directory list: behavior in no-scm projects Mar 4, 2020
@efiop
Copy link
Contributor

efiop commented Oct 8, 2021

This works now, since we are using Repo.open() these days instead of always clonning. Closing

@efiop efiop closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC p2-medium Medium priority, should be done, but less important question I have a question? ui user interface / interaction
Projects
None yet
Development

No branches or pull requests

3 participants