-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Gitoxide fails to load binary configuration on windows 11 with git 2.22 #790
Comments
Byron
added a commit
that referenced
this issue
Mar 26, 2023
) Sometimes, IO errors can occour consistently when reading from certain paths (on Windows, really), and it should be possible to not only see which path that is but also to ignore them entirely. Now IO errors contain the path of the failed configuration file. There is also a new option flag to ignore errors (off by default).
Byron
added a commit
that referenced
this issue
Mar 26, 2023
…s. (#790) These will instead be logged, but won't make it impossible to open an otherwise fine repository.
Byron
added a commit
that referenced
this issue
Mar 26, 2023
#790) Previously we would return paths that contained quotes. Note that we don't properly unquote C-style strings (which this is: https://github.com/git/git/blob/d9d677b2d8cc5f70499db04e633ba7a400f64cbf/builtin/config.c#L197) thinking that the git-binary configuration paths are well-known and don't need the complete decoding. If so, this is already implemented in `gix_quote::ansi_c::undo()`.
Thanks a lot for letting me know! This issue has been fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicates
Current behavior 😯
First reported in helix-editor/helix#6358
Opening a repository fails if the system git version is 2.22 on windows 11 (probably other windows versions too) when gitoxide trys to read configuration from the system git executable fails with the following error:
Installing git 2.40 fixes the problem
Expected behavior 🤔
Steps to reproduce 🕹
Failing function using gitoxide:
The text was updated successfully, but these errors were encountered: