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

Throw error if subdirectory doesn't exist #331

Open
vwkd opened this issue Aug 30, 2021 · 0 comments
Open

Throw error if subdirectory doesn't exist #331

vwkd opened this issue Aug 30, 2021 · 0 comments

Comments

@vwkd
Copy link

vwkd commented Aug 30, 2021

The ability to clone a subdirectory with degit user/repo/subdirectory is great!

Currently it seems that it doesn't check if the subdirectory exists in the repo. If it doesn't, it creates an empty target directory which mutates the file system. I'd like to see degit throw an error instead, just like it does if the repo itself doesn't exist.

@vwkd vwkd changed the title Throw if subdirectory doesn't exist Throw error if subdirectory doesn't exist Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant