Closed gebailey closed 5 years ago
Same here on Ubuntu 18.04.3
9,188 files to be processed in work dir
Traceback (most recent call last):
File "/usr/lib/git-core/git-restore-mtime", line 325, in <module>
parselog(args.merge, args.pathspec)
File "/usr/lib/git-core/git-restore-mtime", line 280, in parselog
file = file[1:-1].decode("string-escape")
Interestingly, it works on some repos but fails in others (more complex ones).
Any workaround?
An example repository that always fails: https://github.com/pmem/pmdk — yet creating a new repo with all non-ASCII filenames from that one (unicodetest✭✮
and unicodetest✭✮.match
) is not enough to reproduce the failure.
My workaround is to use Python 2, but its days are numbered. The script needs to be changed so that str
is a byte-string rather than a Unicode string.
I'll soon, in the next few weeks, do a major rewrite on Python 2 / 3 compatibility, perhaps even dropping Python 2 support as it is about to be deprecated.
Confirmed — this works on the repo I mentioned. Thanks!
Reported via Red Hat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1748462
Reproduction (on Fedora 30 using Python 3.7.4):