-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw: allow for longer paths in parse_interpreter()
#3165
mingw: allow for longer paths in parse_interpreter()
#3165
Conversation
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via `pip`). Let's increase it to what is probably the maximum sensible path size: 248 (the same as for `CreateDirectory()`). Signed-off-by: Johannes Schindelin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arbitrary limits are dangerous, but it seems you have a similar limit elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, thanks for digging in to this!
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
Good fix! Since Git for Windows has long path support why not increase this to MAX_PATH or even MAX_LONG_PATH? EDIT: at least make it in-line with code below Line 1524 in 8b8cd53
|
Sure, go ahead! |
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…ength-of-interpreter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
…reter-path mingw: allow for longer paths in `parse_interpreter()`
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via
pip
).Let's increase it to what is probably the maximum sensible path size: 248 (the same as for
CreateDirectory()
).