-
Notifications
You must be signed in to change notification settings - Fork 1.3k
import: git sparse-checkout #3438
Copy link
Copy link
Closed
Labels
enhancementEnhances DVCEnhances DVCp2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less importantperformanceimprovement over resource / time consuming tasksimprovement over resource / time consuming tasks
Metadata
Metadata
Assignees
Labels
enhancementEnhances DVCEnhances DVCp2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less importantperformanceimprovement over resource / time consuming tasksimprovement over resource / time consuming tasks
dvc import https://some/git/repo/ some_fileshould probably do a sparse checkout.Currently looks like it does a full clone:
https://github.com/iterative/dvc/blob/05cc023164766fbbec91642d7d8af513c8d4079b/dvc/stage.py#L941 would call https://github.com/iterative/dvc/blob/05cc023164766fbbec91642d7d8af513c8d4079b/dvc/dependency/repo.py#L73-L81
On a related note, is the repo locally cached by default https://github.com/iterative/dvc/blob/05cc023164766fbbec91642d7d8af513c8d4079b/dvc/dependency/repo.py#L78-L79 so that
dvc updatewon't re-clone?