You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a Windows installation (Windows 10Pro, 22H2) with git-annex version: 10.20230803-gd467c70ef7, the tests of iter_annexworktree fail.
The reason is that a key in the format '${key}\r\n' is written out by git-annex find, even though the format '${key}\n' is specified (the output contains an additional '\r').
The itemize-function that parses the output of git-annex find expects a single b'\n' as key-terminator, and fails therefore to properly yield individual keys.
This can be fixed by setting the terminator to None which allows itemize to use a number of different separators, e.g. b'\r' and b'\r\n'.
The text was updated successfully, but these errors were encountered:
This commit fixes issue datalad#559. It allows `itemize`
to any of multiple line-separators to separate the
output of `git annex find`. This takes care of the
fact that some git-annex versions will output
an unrequested `'\r'` in addition to a requested
`'\n'`.
On a Windows installation (Windows 10Pro, 22H2) with git-annex version: 10.20230803-gd467c70ef7, the tests of
iter_annexworktree
fail.The reason is that a key in the format
'${key}\r\n'
is written out by git-annex find, even though the format'${key}\n'
is specified (the output contains an additional'\r'
).The
itemize
-function that parses the output of git-annex find expects a singleb'\n'
as key-terminator, and fails therefore to properly yield individual keys.This can be fixed by setting the terminator to
None
which allowsitemize
to use a number of different separators, e.g.b'\r'
andb'\r\n'
.The text was updated successfully, but these errors were encountered: