| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
mode_str_to_int(b"100644") returned 1830740. A byte is an int, so the digit 4 was read as 52. A text mode was already 0o100644.
There was a problem hiding this comment.
The focused fix correctly handles byte modes and includes adequate regression coverage.
Review effort: Balanced
Findings: None
Fixes byte-based Git mode parsing by decoding bytes before converting octal digits.
Changes:
| File | Description |
|---|---|
| git/objects/util.py | Corrects byte mode conversion. |
| test/test_util.py | Adds regression tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
|
Thanks a lot! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
mode_str_to_int(b"100644") returned 1830740 (0o6767524). A byte is an int, so the digit 4 was read as 52. mode_str_to_int("100644") was already 0o100644. A byte string is decoded before the digits are read. b"120000" is 0o120000. 644 is still 0o644.
Test plan
Drafted with Grok 4.7. The code has not yet been reviewed by a human.