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:
Piotr Bielak
2021-02-01 14:21:21 +02:00
committed by GitHub
parent 131eb7b3a1
commit 3feaa86696
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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:
+2
View File
@@ -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,
)