-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import: Handle non-DVC Git repositories #2977
Comments
Hello all, @shcheklein asked me to work on this as a recruitment test. I have tracked down the reason why this is not yet working: the |
Here are some ideas for resolving this; I'm not sure which fits better with the overall design:
|
@chatcannon Sorry for the delay! The first two ideas are pretty hacky, the third one would ideally be the way to go. Unless there is a good reason to go with the hacks, of course 🙂But I haven't seen any, it looks like you could gracefully catch if the repo is not a dvc repo and fall back to git logic. Or you could clone git repo first and then check if it is a dvc repo or not. Maybe there is a better way to do it too, your call 🙂 |
@chatcannon I would say we can integrate this into existing code path. Otherwise will need to duplicate lots of things. Just don't create a P.S. Some refactoring might be needed to both not make it messy and avoid code duplication. |
After #2889,
dvc import
can also import files that are tracked by Git but not DVC. DVC still requires that they come from a DVC repository rather than any Git repository, although there is no longer need for that.The text was updated successfully, but these errors were encountered: