| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
❌ 1 Tests Failed:
To view more test analytics, go to the Test Analytics Dashboard |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR addresses a UnicodeDecodeError occurring in GitVersioningSystem.list_relevant_files when processing the output of git ls-files -z.
Previously, res.stdout.decode() was used without an error handler, causing the CLI to crash if git ls-files -z returned filenames containing byte sequences that were not valid UTF-8. This can happen with filesystems or repositories where filenames use non-UTF-8 encodings (e.g., Latin-1).
The fix modifies the decode() call to res.stdout.decode(errors="replace"). This ensures that any invalid byte sequences encountered during decoding are replaced with the Unicode replacement character (\ufffd) instead of raising an error. This makes the CLI more robust and prevents crashes when encountering such filenames, allowing the upload process to complete successfully.
Fixes CLI-AK
This PR was automatically generated by Sentry. You can adjust this setting at any time.