mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #2306 from efiop/2252
import: only download specific output
This commit is contained in:
@@ -68,7 +68,8 @@ class DependencyREPO(DependencyLOCAL):
|
||||
self.def_repo[self.PARAM_REV_LOCK] = repo.scm.get_rev()
|
||||
|
||||
out = repo.find_out_by_relpath(self.def_path)
|
||||
repo.fetch(out.stage.path)
|
||||
with repo.state:
|
||||
repo.cloud.pull(out.get_used_cache())
|
||||
to.info = copy.copy(out.info)
|
||||
to.checkout()
|
||||
|
||||
|
||||
+2
-1
@@ -36,7 +36,8 @@ def get(url, path, out=None, rev=None):
|
||||
"reflink,hardlink,copy",
|
||||
)
|
||||
o = repo.find_out_by_relpath(path)
|
||||
repo.fetch(o.stage.path)
|
||||
with repo.state:
|
||||
repo.cloud.pull(o.get_used_cache())
|
||||
o.path_info = PathInfo(os.path.abspath(out))
|
||||
with o.repo.state:
|
||||
o.checkout()
|
||||
|
||||
Reference in New Issue
Block a user