mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 15:28:28 +01:00
dvc: checkout single file
Fixes #666 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import os
|
||||
import stat
|
||||
|
||||
from dvc.system import System
|
||||
from dvc.command.common.base import CmdBase
|
||||
from dvc.logger import Logger
|
||||
|
||||
|
||||
class CmdCheckout(CmdBase):
|
||||
def run(self):
|
||||
self.project.checkout()
|
||||
if not self.args.targets:
|
||||
self.project.checkout()
|
||||
else:
|
||||
for target in self.args.targets:
|
||||
self.project.checkout(target=target)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user