mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Pass missing glob flag to pull command (#5354)
The `--glob` flag is parsed from the command line, but in the `CmdDataPull` class in the invocation the parameter (`self.args.glob`) is not passed to the `pull` method implementation. Hence, always the default value (False) is used. This commit fixes this issue and sets the `glob` parameter properly.
This commit is contained in:
@@ -37,6 +37,7 @@ class CmdDataPull(CmdDataBase):
|
||||
force=self.args.force,
|
||||
recursive=self.args.recursive,
|
||||
run_cache=self.args.run_cache,
|
||||
glob=self.args.glob,
|
||||
)
|
||||
self.log_summary(stats)
|
||||
except (CheckoutError, DvcException) as exc:
|
||||
|
||||
@@ -57,6 +57,7 @@ def test_pull(mocker):
|
||||
"--force",
|
||||
"--recursive",
|
||||
"--run-cache",
|
||||
"--glob",
|
||||
]
|
||||
)
|
||||
assert cli_args.func == CmdDataPull
|
||||
@@ -77,6 +78,7 @@ def test_pull(mocker):
|
||||
force=True,
|
||||
recursive=True,
|
||||
run_cache=True,
|
||||
glob=True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user