Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BF: pass "paths" as "files" argument to _run...command for proper chunking #3587

Merged
merged 1 commit into from Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions datalad/support/annexrepo.py
Expand Up @@ -3181,15 +3181,19 @@ def get_content_annexinfo(
# it takes care of git-annex reporting on any known key, regardless
# of whether or not it actually (did) exist in the local annex
opts = ['--copies', '0']
files = None
if ref:
cmd = 'findref'
opts.append(ref)
else:
cmd = 'find'
# stringify any pathobjs
opts.extend([text_type(p) for p in paths]
if paths else ['--include', '*'])
for j in self._run_annex_command_json(cmd, opts=opts):
if paths:
files = [text_type(p) for p in paths]
else:
opts.extend(['--include', '*'])

for j in self._run_annex_command_json(cmd, opts=opts, files=files):
path = self.pathobj.joinpath(ut.PurePosixPath(j['file']))
rec = info.get(path, None)
if init is not None and rec is None:
Expand Down