Skip to content

Commit

Permalink
Merge pull request #743 from mih/decodeorder2
Browse files Browse the repository at this point in the history
Follow-up to #741, fixing the rest
  • Loading branch information
mih authored Jul 13, 2024
2 parents b20e779 + c859854 commit 977016a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions datalad_next/iter_collections/gitdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,8 @@ def _mangle_item_for_singledir(

def _git_diff_something(path: Path, args: List[str]) -> Iterator[str]:
with iter_git_subproc([*args], cwd=path) as r:
yield from decode_bytes(
itemize(
r,
sep=b'\0',
keep_ends=False,
)
yield from itemize(
decode_bytes(r),
sep='\0',
keep_ends=False,
)
10 changes: 4 additions & 6 deletions datalad_next/iter_collections/gittree.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ def _git_ls_tree(path: Path, *args) -> Iterator[str]:
],
cwd=path,
) as r:
yield from decode_bytes(
itemize(
r,
sep=b'\0',
keep_ends=False,
)
yield from itemize(
decode_bytes(r),
sep='\0',
keep_ends=False,
)

0 comments on commit 977016a

Please sign in to comment.